mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 19:40:10 +01:00
mesa/es: Validate glCreateShader targets in Mesa code rather than the ES wrapper
v2: Add proper core-profile filtering. Signed-off-by: Ian Romanick <ian.d.romanick@intel.com> Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
b042f7a1ff
commit
86f29cf7d0
2 changed files with 1 additions and 6 deletions
|
|
@ -2016,11 +2016,6 @@
|
|||
<return type="GLuint"/>
|
||||
<param name="type" type="GLenum"/>
|
||||
</proto>
|
||||
|
||||
<desc name="type">
|
||||
<value name="GL_VERTEX_SHADER"/>
|
||||
<value name="GL_FRAGMENT_SHADER"/>
|
||||
</desc>
|
||||
</template>
|
||||
|
||||
<template name="ShaderSource">
|
||||
|
|
|
|||
|
|
@ -177,7 +177,7 @@ validate_shader_target(const struct gl_context *ctx, GLenum type)
|
|||
#endif
|
||||
#if FEATURE_ARB_geometry_shader4
|
||||
case GL_GEOMETRY_SHADER_ARB:
|
||||
return ctx->Extensions.ARB_geometry_shader4;
|
||||
return _mesa_is_desktop_gl(ctx) && ctx->Extensions.ARB_geometry_shader4;
|
||||
#endif
|
||||
default:
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue