wined3d: Explicitly enable the GL_ARB_draw_buffers extension in GLSL shaders.
This commit is contained in:
parent
dd70c0ae7c
commit
35bd8d32b1
|
@ -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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue