Signed-off-by: Oliver McFadden <oliver.mcfad...@linux.intel.com> --- src/mesa/main/api_exec.c | 4 ++-- src/mesa/main/mfeatures.h | 1 - src/mesa/main/shared.c | 8 ++++---- 3 files changed, 6 insertions(+), 7 deletions(-)
diff --git a/src/mesa/main/api_exec.c b/src/mesa/main/api_exec.c index 1816d93..74be12f 100644 --- a/src/mesa/main/api_exec.c +++ b/src/mesa/main/api_exec.c @@ -73,7 +73,7 @@ #include "polygon.h" #include "queryobj.h" #include "readpix.h" -#if FEATURE_ARB_sampler_objects +#if FEATURE_GL #include "samplerobj.h" #endif #include "scissor.h" @@ -893,7 +893,7 @@ _mesa_create_exec_table(struct gl_context *ctx) SET_TextureStorage2DEXT(exec, _mesa_TextureStorage2DEXT); SET_TextureStorage3DEXT(exec, _mesa_TextureStorage3DEXT); -#if FEATURE_ARB_sampler_objects +#if FEATURE_GL if (ctx->API != API_OPENGLES2) { _mesa_init_sampler_object_dispatch(exec); } diff --git a/src/mesa/main/mfeatures.h b/src/mesa/main/mfeatures.h index 30411f7..e0116c6 100644 --- a/src/mesa/main/mfeatures.h +++ b/src/mesa/main/mfeatures.h @@ -84,7 +84,6 @@ #define FEATURE_remap_table 0 #endif -#define FEATURE_ARB_sampler_objects FEATURE_GL #define FEATURE_ARB_sync FEATURE_GL #define FEATURE_EXT_framebuffer_blit FEATURE_GL diff --git a/src/mesa/main/shared.c b/src/mesa/main/shared.c index e4bb830..8646d87 100644 --- a/src/mesa/main/shared.c +++ b/src/mesa/main/shared.c @@ -38,7 +38,7 @@ #include "shared.h" #include "program/program.h" #include "dlist.h" -#if FEATURE_ARB_sampler_objects +#if FEATURE_GL #include "samplerobj.h" #endif #include "shaderobj.h" @@ -86,7 +86,7 @@ _mesa_alloc_shared_state(struct gl_context *ctx) shared->BufferObjects = _mesa_NewHashTable(); -#if FEATURE_ARB_sampler_objects +#if FEATURE_GL /* GL_ARB_sampler_objects */ shared->SamplerObjects = _mesa_NewHashTable(); #endif @@ -269,7 +269,7 @@ delete_renderbuffer_cb(GLuint id, void *data, void *userData) } -#if FEATURE_ARB_sampler_objects +#if FEATURE_GL /** * Callback for deleting a sampler object. Called by _mesa_HashDeleteAll() */ @@ -347,7 +347,7 @@ free_shared_state(struct gl_context *ctx, struct gl_shared_state *shared) } } -#if FEATURE_ARB_sampler_objects +#if FEATURE_GL _mesa_HashDeleteAll(shared->SamplerObjects, delete_sampler_object_cb, ctx); _mesa_DeleteHashTable(shared->SamplerObjects); #endif -- 1.7.8.6 _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev