libEGL warning: DRI2: failed to find _glapi_get_proc_address
J M
j at glx.me
Mon Nov 18 02:05:02 UTC 2013
How to create OpenGL Context without GLX?
#include <EGL/egl.h>
#include <GL/gl.h>
#include <X11/Xlib.h>
#include <iostream>
int main() {
Display * xDisplay = XOpenDisplay(NULL);
if (xDisplay == NULL) {
std::cerr << "Error: XOpenDisplay" << std::endl;
return -1;
}
EGLDisplay display = eglGetDisplay(
(EGLNativeDisplayType)xDisplay
);
if (!eglInitialize(display, NULL, NULL)) {
std::cerr << "Error: eglInitialize" << std::endl;
return -1;
}
return 0;
}
More information about the freebsd-x11
mailing list