projects
/
andemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
windows build with msvc2022
[andemo]
/
src
/
opengl.c
diff --git
a/src/opengl.c
b/src/opengl.c
index
78b5591
..
13b2e05
100644
(file)
--- a/
src/opengl.c
+++ b/
src/opengl.c
@@
-1,3
+1,4
@@
+#include <stdio.h>
#include "opengl.h"
int init_opengl(void)
#include "opengl.h"
int init_opengl(void)
@@
-5,5
+6,10
@@
int init_opengl(void)
#ifdef __glew_h__
glewInit();
#endif
#ifdef __glew_h__
glewInit();
#endif
+
+ printf("GL vendor: %s\n", glGetString(GL_VENDOR));
+ printf("GL renderer: %s\n", glGetString(GL_RENDERER));
+ printf("GL version: %s\n", glGetString(GL_VERSION));
+
return 0;
}
return 0;
}