Commit 35bd8d32 authored by H. Verbeet's avatar H. Verbeet Committed by Alexandre Julliard

wined3d: Explicitly enable the GL_ARB_draw_buffers extension in GLSL shaders.

parent dd70c0ae
...@@ -838,6 +838,10 @@ inline static VOID IWineD3DPixelShaderImpl_GenerateShader( ...@@ -838,6 +838,10 @@ inline static VOID IWineD3DPixelShaderImpl_GenerateShader(
/* Create the hw GLSL shader object and assign it as the baseShader.prgId */ /* Create the hw GLSL shader object and assign it as the baseShader.prgId */
GLhandleARB shader_obj = GL_EXTCALL(glCreateShaderObjectARB(GL_FRAGMENT_SHADER_ARB)); GLhandleARB shader_obj = GL_EXTCALL(glCreateShaderObjectARB(GL_FRAGMENT_SHADER_ARB));
if (GL_SUPPORT(ARB_DRAW_BUFFERS)) {
shader_addline(&buffer, "#extension GL_ARB_draw_buffers : enable\n");
}
/* Base Declarations */ /* Base Declarations */
shader_generate_glsl_declarations( (IWineD3DBaseShader*) This, reg_maps, &buffer, &GLINFO_LOCATION); shader_generate_glsl_declarations( (IWineD3DBaseShader*) This, reg_maps, &buffer, &GLINFO_LOCATION);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment