mesa: replace GLenum target with gl_shader_stage in NewProgram
So that the GLSL compiler doesn't have to use the GLenum conversion functions. Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4756>
This commit is contained in:
@@ -75,9 +75,9 @@ _mesa_alloc_shared_state(struct gl_context *ctx)
|
||||
shared->Programs = _mesa_NewHashTable();
|
||||
|
||||
shared->DefaultVertexProgram =
|
||||
ctx->Driver.NewProgram(ctx, GL_VERTEX_PROGRAM_ARB, 0, true);
|
||||
ctx->Driver.NewProgram(ctx, MESA_SHADER_VERTEX, 0, true);
|
||||
shared->DefaultFragmentProgram =
|
||||
ctx->Driver.NewProgram(ctx, GL_FRAGMENT_PROGRAM_ARB, 0, true);
|
||||
ctx->Driver.NewProgram(ctx, MESA_SHADER_FRAGMENT, 0, true);
|
||||
|
||||
shared->ATIShaders = _mesa_NewHashTable();
|
||||
shared->DefaultFragmentShader = _mesa_new_ati_fragment_shader(ctx, 0);
|
||||
|
Reference in New Issue
Block a user