mirror of
https://github.com/glfw/glfw.git
synced 2025-06-15 20:22:15 +00:00
Added support for fetching floating type backbuffers.
This commit is contained in:
parent
06778491d7
commit
ae4a1c7aa1
@ -159,7 +159,8 @@ static int choosePixelFormat(_GLFWwindow* window,
|
||||
continue;
|
||||
}
|
||||
|
||||
if (findAttribValue(WGL_PIXEL_TYPE_ARB) != WGL_TYPE_RGBA_ARB)
|
||||
const int pixelType = findAttribValue( WGL_PIXEL_TYPE_ARB );
|
||||
if ( pixelType != WGL_TYPE_RGBA_ARB && pixelType != WGL_TYPE_RGBA_FLOAT_ARB )
|
||||
continue;
|
||||
|
||||
if (findAttribValue(WGL_ACCELERATION_ARB) == WGL_NO_ACCELERATION_ARB)
|
||||
|
@ -30,6 +30,7 @@
|
||||
#define WGL_DRAW_TO_WINDOW_ARB 0x2001
|
||||
#define WGL_PIXEL_TYPE_ARB 0x2013
|
||||
#define WGL_TYPE_RGBA_ARB 0x202b
|
||||
#define WGL_TYPE_RGBA_FLOAT_ARB 0x21A0
|
||||
#define WGL_ACCELERATION_ARB 0x2003
|
||||
#define WGL_NO_ACCELERATION_ARB 0x2025
|
||||
#define WGL_RED_BITS_ARB 0x2015
|
||||
|
Loading…
Reference in New Issue
Block a user