H. Verbeet : wined3d:
Explicitly enable the GL_ARB_draw_buffers extension in GLSL shaders.
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Oct 2 15:01:14 CDT 2006
Module: wine
Branch: master
Commit: 35bd8d32b19fd82f435e8b0d44dbc6961e193c1a
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=35bd8d32b19fd82f435e8b0d44dbc6961e193c1a
Author: H. Verbeet <hverbeet at gmail.com>
Date: Mon Oct 2 20:06:38 2006 +0200
wined3d: Explicitly enable the GL_ARB_draw_buffers extension in GLSL shaders.
---
dlls/wined3d/pixelshader.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/dlls/wined3d/pixelshader.c b/dlls/wined3d/pixelshader.c
index 26f3299..9fc88cf 100644
--- a/dlls/wined3d/pixelshader.c
+++ b/dlls/wined3d/pixelshader.c
@@ -838,6 +838,10 @@ #endif
/* 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);
More information about the wine-cvs
mailing list