Fatal messages to stderr

This commit is contained in:
Jannik Vogel 2015-07-13 14:25:40 +02:00
parent c32594ed12
commit 3364a7b461
1 changed files with 4 additions and 4 deletions

View File

@ -100,8 +100,8 @@ GloContext *glo_context_create(int formatFlags)
(PFNGLXCREATECONTEXTATTRIBSARBPROC)
glXGetProcAddress((const GLubyte*)"glXCreateContextAttribsARB");
if (glXCreateContextAttribsARB == NULL) {
printf("GLX doesn't support ARB_create_context extension.\n");
exit(1);
fprintf(stderr,"GLX doesn't support ARB_create_context extension.\n");
exit(EXIT_FAILURE);
}
int context_attribute_list[] = {
GLX_CONTEXT_MAJOR_VERSION_ARB, 3,
@ -119,8 +119,8 @@ GloContext *glo_context_create(int formatFlags)
glewExperimental = GL_TRUE;
if (GLEW_OK != glewInit()) {
/* GLEW failed! */
printf("GLEW init failed.\n");
exit(1);
fprintf(stderr,"GLEW init failed.\n");
exit(EXIT_FAILURE);
}
/* Get rid of GLEW errors */