From 35bd8d32b19fd82f435e8b0d44dbc6961e193c1a Mon Sep 17 00:00:00 2001 From: "H. Verbeet" Date: Mon, 2 Oct 2006 20:06:38 +0200 Subject: [PATCH] wined3d: Explicitly enable the GL_ARB_draw_buffers extension in GLSL shaders. --- dlls/wined3d/pixelshader.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/dlls/wined3d/pixelshader.c b/dlls/wined3d/pixelshader.c index 26f32997575..9fc88cfad34 100644 --- a/dlls/wined3d/pixelshader.c +++ b/dlls/wined3d/pixelshader.c @@ -838,6 +838,10 @@ inline static VOID IWineD3DPixelShaderImpl_GenerateShader( /* Create the hw GLSL shader object and assign it as the baseShader.prgId */ 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 */ shader_generate_glsl_declarations( (IWineD3DBaseShader*) This, reg_maps, &buffer, &GLINFO_LOCATION);