wglGetPixelFormatAttribivARB unexpected RenderType(100)

fenix at club-internet.fr fenix at club-internet.fr
Fri Dec 2 17:58:37 CST 2005


 
 
----Message d'origine---- 
>Date: Fri, 2 Dec 2005 14:07:24 -0800 
>De: Toan T Nguyen <nguyenthetoan at gmail.com> 
>A: wine-devel at winehq.org 
>Sujet: wglGetPixelFormatAttribivARB unexpected RenderType(100) 
> 
>Hi, 
> 
>I compile and run Quake2Evolved in linux using winelib. Although every 
>seems fine, there's this error printed out when Q2E scans for the best 
>pixel format: 
> 
> err:opengl:wglGetPixelFormatAttribivARB unexpected RenderType(100) 
> 
>I look up my /usr/include/GL/glxATI.h and found these lines: 
> 
>#ifndef GLX_ATI_pixel_format_float 
>#define GLX_ATI_pixel_format_float  1 
> 
>#define GLX_RGBA_FLOAT_ATI_BIT                          0x00000100 
> 
>#endif // GLX_ATI_pixel_format_float 
> 
> 
>Bests, 
> 
>Toan 
> 
 
Hi 
 
Interesting and fun extension :) 
Try attached patch if it works (and it should) forward it to wine-patches  
 
Regards, 
Raphael 

-------------- next part --------------
Index: wgl_ext.c
===================================================================
RCS file: /home/wine/wine/dlls/opengl32/wgl_ext.c,v
retrieving revision 1.13
diff -u -r1.13 wgl_ext.c
--- wgl_ext.c	24 Nov 2005 18:45:12 -0000	1.13
+++ wgl_ext.c	2 Dec 2005 23:53:42 -0000
@@ -328,6 +328,16 @@
 #define WGL_AUX8_ARB                        0x208F 
 #define WGL_AUX9_ARB                        0x2090
 
+/** 
+ * WGL_ATI_pixel_format_float 
+ */
+#define WGL_TYPE_RGBA_FLOAT_ATI             0x21A0
+#define GL_TYPE_RGBA_FLOAT_ATI              0x8820
+#define GL_COLOR_CLEAR_UNCLAMPED_VALUE_ATI  0x8835
+/** GLX_ATI_pixel_format_float */
+#define GLX_RGBA_FLOAT_ATI_BIT              0x00000100 
+ 
+
 #if 0 /* not used yet */
 static unsigned ConvertAttribGLXtoWGL(const int* iWGLAttr, int* oGLXAttr) {
   unsigned nAttribs = 0;
@@ -392,8 +402,9 @@
     case WGL_PIXEL_TYPE_ARB:
       pop = iWGLAttr[++cur];
       switch (pop) {
-      case WGL_TYPE_RGBA_ARB:  pop = GLX_RGBA_BIT; break ; 
       case WGL_TYPE_COLORINDEX_ARB: pop = GLX_COLOR_INDEX_BIT; isColor = 1; break ;
+      case WGL_TYPE_RGBA_ARB: pop = GLX_RGBA_BIT; break ;
+      case WGL_TYPE_RGBA_FLOAT_ATI: pop = GLX_RGBA_FLOAT_ATI_BIT; break ;
       default:
 	ERR("unexpected PixelType(%x)\n", pop);	
 	pop = 0;
@@ -559,8 +570,9 @@
       hTest = glXGetFBConfigAttrib(display, curCfg, curGLXAttr, &tmp);
       if (hTest) goto get_error;
       switch (tmp) {
-      case GLX_RGBA_BIT: piValues[i] = WGL_TYPE_RGBA_ARB; break;
       case GLX_COLOR_INDEX_BIT: piValues[i] = WGL_TYPE_COLORINDEX_ARB; break ;
+      case GLX_RGBA_BIT: piValues[i] = WGL_TYPE_RGBA_ARB; break;
+      case GLX_RGBA_FLOAT_ATI_BIT: piValues[i] = WGL_TYPE_RGBA_FLOAT_ATI; break ;
       default:
 	ERR("unexpected RenderType(%x)\n", tmp);
 	piValues[i] = WGL_TYPE_RGBA_ARB;


More information about the wine-devel mailing list