diff options
author | Chad Versace <chad.versace@linux.intel.com> | 2014-06-12 15:33:52 -0700 |
---|---|---|
committer | Chad Versace <chad.versace@linux.intel.com> | 2014-06-23 02:37:37 -0700 |
commit | 9bfd7de58d73e8ab5ad5cee76f612c599533a867 (patch) | |
tree | e76b62da6b9df4f444bfd9d00275fbd434eee48b /src | |
parent | a3b67e2c6a68783ac3e46f15d932e3c3b6f567dc (diff) |
dispatch: Use piglit-dispatch for GLES1
After having migrated piglit-dispatch to the Khronos XML,
moving GLES1 to piglit-dispatch was easy. This patch:
1. Fixes gl_wrap.h to include piglit-dispatch-gen.h instead of
<GLES/*.h>.
2. Deletes some ugly macro workarounds for GLES1 that piglit-dispatch
obsoletes.
3. Add piglit-dispatch*.c to libpiglitutil_gles1 in the CMake.
4. Call piglit_dispatch_init(PIGLIT_DISPATCH_ES1).
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/piglit/gl_wrap.h | 68 |
1 files changed, 1 insertions, 67 deletions
diff --git a/src/piglit/gl_wrap.h b/src/piglit/gl_wrap.h index e8bbbcdec..56492a7da 100644 --- a/src/piglit/gl_wrap.h +++ b/src/piglit/gl_wrap.h @@ -1,67 +1 @@ -/* - * Copyright (c) 2010 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining a - * copy of this software and associated documentation files (the "Software"), - * to deal in the Software without restriction, including without limitation - * the rights to use, copy, modify, merge, publish, distribute, sublicense, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the next - * paragraph) shall be included in all copies or substantial portions of the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS - * IN THE SOFTWARE. - * - * Authors: - * Chad Versace <chad.versace@intel.com> - */ - -/** - * \file gl_wrap.h - * \brief Convenience header that includes the actual OpenGL headers. - * - * The actual OpenGL headers are chosen according to the macro definitions - * PIGLIT_USE_OPENGL, PIGLIT_USE_OPENGL_ES1, and PIGLIT_USE_OPENGL_ES2. - */ - -#pragma once - -#ifdef __cplusplus -extern "C" { -#endif - -#ifdef _WIN32 -#include <windows.h> -#endif - -#if (defined(PIGLIT_USE_OPENGL) || \ - defined(PIGLIT_USE_OPENGL_ES2) || \ - defined(PIGLIT_USE_OPENGL_ES3)) -# include "piglit-dispatch.h" - -#elif defined(PIGLIT_USE_OPENGL_ES1) -# define GL_GLEXT_PROTOTYPES -# include <GLES/gl.h> -# include <GLES/glext.h> - - /* for source level compatibility */ -# define GL_TEXTURE_CUBE_MAP_POSITIVE_X GL_TEXTURE_CUBE_MAP_POSITIVE_X_OES -# define GL_TEXTURE_CUBE_MAP_POSITIVE_Y GL_TEXTURE_CUBE_MAP_POSITIVE_Y_OES -# define GL_TEXTURE_CUBE_MAP_POSITIVE_Z GL_TEXTURE_CUBE_MAP_POSITIVE_Z_OES -# define GL_TEXTURE_CUBE_MAP_NEGATIVE_X GL_TEXTURE_CUBE_MAP_NEGATIVE_X_OES -# define GL_TEXTURE_CUBE_MAP_NEGATIVE_Y GL_TEXTURE_CUBE_MAP_NEGATIVE_Y_OES -# define GL_TEXTURE_CUBE_MAP_NEGATIVE_Z GL_TEXTURE_CUBE_MAP_NEGATIVE_Z_OES - -#endif - -#ifdef __cplusplus -} /* end extern "C" */ -#endif +#include "piglit-dispatch.h" |