does WGL_ATI_pixel_format_float actually work on radeon 9800(r350) ??

Started by
-1 comments, last by 3dmaniac 17 years, 2 months ago
I'm trying to create a floating point framebuffer on my radeon9800 using this extension to produce some nice postprocess effects, but it somehow doesn't work - wglChoosePixelFormatARB fails. Got some ideas ?? Code: bool SetupPixelFormat(int channelBits) { int iAttributes[] = { WGL_DRAW_TO_WINDOW_ARB, 1, WGL_SUPPORT_OPENGL_ARB, 1, WGL_DOUBLE_BUFFER_ARB, 1, WGL_ACCELERATION_ARB, WGL_FULL_ACCELERATION_ARB, WGL_RED_BITS_ARB, channelBits, WGL_GREEN_BITS_ARB, channelBits, WGL_BLUE_BITS_ARB, channelBits, WGL_ALPHA_BITS_ARB, channelBits, WGL_PIXEL_TYPE_ARB, WGL_TYPE_RGBA_FLOAT_ATI, WGL_DEPTH_BITS_ARB, 16, 0, 0 }; int pixelFormat; unsigned int numFormats; if ((!wglChoosePixelFormatARB(h_DC, iAttributes, NULL, 1, &pixelFormat, &numFormats)) || (numFormats < 1)) { MessageBox(h_Wnd, "Cant choose pixel format", AppTitle, MB_ICONERROR); return false; } ...

This topic is closed to new replies.

Advertisement