|
@@ -13,6 +13,7 @@
|
|
|
// http://nehe.gamedev.net/
|
|
|
// ----------------------------------------------------------------------------
|
|
|
#include <windows.h>
|
|
|
+#include <shellapi.h>
|
|
|
#include <stdio.h>
|
|
|
#include <GL/gl.h>
|
|
|
#include <GL/glu.h>
|
|
@@ -666,7 +667,7 @@ BOOL CreateGLWindow(const char* title, int width, int height, int bits, bool ful
|
|
|
PFD_SUPPORT_OPENGL | // Format Must Support OpenGL
|
|
|
PFD_DOUBLEBUFFER, // Must Support Double Buffering
|
|
|
PFD_TYPE_RGBA, // Request An RGBA Format
|
|
|
- bits, // Select Our Color Depth
|
|
|
+ BYTE(bits), // Select Our Color Depth
|
|
|
0, 0, 0, 0, 0, 0, // Color Bits Ignored
|
|
|
0, // No Alpha Buffer
|
|
|
0, // Shift Bit Ignored
|