Last active
December 16, 2015 21:48
-
-
Save azmeuk/5501989 to your computer and use it in GitHub Desktop.
This code returns :EGL KOGLX OK
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <EGL/egl.h> | |
#include <GL/glx.h> | |
#include <SDL/SDL.h> | |
int main(){ | |
SDL_InitSubSystem(SDL_INIT_VIDEO); | |
SDL_SetVideoMode(200, 200, 0, SDL_OPENGL); | |
printf(eglGetCurrentContext() == EGL_NO_CONTEXT ? "EGL KO\n" : "EGL OK\n"); | |
printf(glXGetCurrentContext() == NULL ? "GLX KO\n" : "GLX OK\n"); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment