tangled
alpha
login
or
join now
canoi.dev.br
/
bite
0
fork
atom
bit engine
0
fork
atom
overview
issues
pulls
pipelines
fixed opengl loader for win32;
Canoi
3 years ago
316e9153
b65eeb5e
+5
-3
1 changed file
expand all
collapse all
unified
split
bite.c
+5
-3
bite.c
reviewed
···
908
908
}
909
909
910
910
int gl_attribs[] = {
911
911
-
WGL_CONTEXT_MAJOR_VERSION_ARB, 2,
912
912
-
WGL_CONTEXT_MINOR_VERSION_ARB, 1,
911
911
+
WGL_CONTEXT_MAJOR_VERSION_ARB, 3,
912
912
+
WGL_CONTEXT_MINOR_VERSION_ARB, 0,
913
913
WGL_CONTEXT_PROFILE_MASK_ARB, WGL_CONTEXT_COMPATIBILITY_PROFILE_BIT_ARB,
914
914
0, 0
915
915
};
···
1269
1269
fprintf(stderr, "Failed to load OpenGL32.dll\n");
1270
1270
return BITE_ERROR;
1271
1271
}
1272
1272
+
_proc_address = (void*(*)(const char*))GetProcAddress(_gl_sym, "wglGetProcAddress");
1272
1273
#else
1273
1274
#if defined(__APPLE__)
1274
1275
const char *names[] = {
···
1337
1338
}
1338
1339
}
1339
1340
1340
1340
-
fprintf(stdout, "OpenGL: %s\n", version);
1341
1341
+
fprintf(stderr, "OpenGL: %s\n", version);
1341
1342
1342
1343
GET_GL_PROC(glGenVertexArrays);
1343
1344
GET_GL_PROC(glBindVertexArray);
···
1393
1394
sym = (void*)dlsym(_gl_sym, name);
1394
1395
#endif
1395
1396
}
1397
1397
+
fprintf(stderr, "%s: %p\n", name, sym);
1396
1398
return sym;
1397
1399
}