Print OpenGL/GLSL version on startup

This commit is contained in:
rakiru 2016-01-11 22:14:23 +00:00
parent 563ee9292c
commit 87c88f543b

View File

@ -207,6 +207,7 @@ int video_init(void)
return 1; return 1;
} }
printf("OpenGL %s, GLSL %s\n", glGetString(GL_VERSION), glGetString(GL_SHADING_LANGUAGE_VERSION));
if(!GLAD_GL_VERSION_2_0) if(!GLAD_GL_VERSION_2_0)
{ {
SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR,