summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/wgl
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2014-05-28 10:01:30 -0600
committerJosé Fonseca <[email protected]>2014-05-30 18:52:39 +0100
commitebf229a436442425fa07df9e5d406d922efdbff0 (patch)
tree669cf19f50688894aa472a334e140b5f0b8c6a01 /src/gallium/state_trackers/wgl
parent4b05e3cb0fae142365c87f53cf3804266beddf2f (diff)
st/wgl: use _debug_printf() instead of fprintf()
This should print output both for debug and release builds. Suggested by Jose. Reviewed-by: José Fonseca <[email protected]> Reviewed-by: Charmaine Lee <[email protected]>
Diffstat (limited to 'src/gallium/state_trackers/wgl')
-rw-r--r--src/gallium/state_trackers/wgl/stw_ext_context.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/gallium/state_trackers/wgl/stw_ext_context.c b/src/gallium/state_trackers/wgl/stw_ext_context.c
index 0049896b8df..bc8d5c244e8 100644
--- a/src/gallium/state_trackers/wgl/stw_ext_context.c
+++ b/src/gallium/state_trackers/wgl/stw_ext_context.c
@@ -23,7 +23,6 @@
*/
#include <stdio.h>
-#include <assert.h>
#include <windows.h>
#define WGL_WGLEXT_PROTOTYPES
@@ -143,8 +142,7 @@ wglCreateContextAttribsARB(HDC hDC, HGLRC hShareContext, const int *attribList)
/* Open the OPENGL32.DLL library */
opengl_lib = LoadLibraryA("OPENGL32.DLL");
if (!opengl_lib) {
- fprintf(stderr, "wgl: LoadLibrary(OPENGL32.DLL) failed\n");
- fflush(stderr);
+ _debug_printf("wgl: LoadLibrary(OPENGL32.DLL) failed\n");
return 0;
}
@@ -152,8 +150,7 @@ wglCreateContextAttribsARB(HDC hDC, HGLRC hShareContext, const int *attribList)
wglCreateContext_func = (wglCreateContext_t)
GetProcAddress(opengl_lib, "wglCreateContext");
if (!wglCreateContext_func) {
- fprintf(stderr, "wgl: failed to get wglCreateContext()\n");
- fflush(stderr);
+ _debug_printf("wgl: failed to get wglCreateContext()\n");
return 0;
}
@@ -161,8 +158,7 @@ wglCreateContextAttribsARB(HDC hDC, HGLRC hShareContext, const int *attribList)
wglDeleteContext_func = (wglDeleteContext_t)
GetProcAddress(opengl_lib, "wglDeleteContext");
if (!wglDeleteContext_func) {
- fprintf(stderr, "wgl: failed to get wglDeleteContext()\n");
- fflush(stderr);
+ _debug_printf("wgl: failed to get wglDeleteContext()\n");
return 0;
}
}