Re: [Mesa-dev] Feature testing

2012-08-24 Thread Ian Romanick
On 08/24/2012 02:12 PM, Brian Paul wrote: On 08/24/2012 09:46 AM, Ian Romanick wrote: @@ -372,6 +380,8 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) case GL_LIGHT5: case GL_LIGHT6: case GL_LIGHT7: + if (ctx->API != API_OPENGL&& ctx->AP

[Mesa-dev] Feature testing

2012-08-24 Thread Brian Paul
On 08/24/2012 09:46 AM, Ian Romanick wrote: @@ -372,6 +380,8 @@ _mesa_set_enable(struct gl_context *ctx, GLenum cap, GLboolean state) case GL_LIGHT5: case GL_LIGHT6: case GL_LIGHT7: + if (ctx->API != API_OPENGL&& ctx->API != API_OPENGLES) +goto inval