Everyone needs to be able to split BPPs these days.

This commit is contained in:
Camilla Berglund
2010-09-16 03:48:19 +02:00
parent df63d148e5
commit 3089e60fbd
5 changed files with 37 additions and 54 deletions
+1 -3
View File
@@ -792,9 +792,7 @@ void _glfwPlatformRefreshWindowParams(void)
forAttribute:NSOpenGLPFAColorSize
forVirtualScreen:0];
value -= window->alphaBits;
window->redBits = value / 3;
window->greenBits = value / 3;
window->blueBits = value / 3;
_glfwSplitBPP(value, &window->redBits, &window->greenBits, &window->blueBits);
[window->NSGL.pixelFormat getValues:&value
forAttribute:NSOpenGLPFADepthSize