Date: Mon, 18 Nov 2013 02:04:59 +0000 From: J M <j@glx.me> To: freebsd-x11@freebsd.org Subject: libEGL warning: DRI2: failed to find _glapi_get_proc_address Message-ID: <CAHCP5-x6Z0fhKAnjHTbDyRKNu2Ge3BzkH0uUCRKNbfkMs7xONA@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
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; }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAHCP5-x6Z0fhKAnjHTbDyRKNu2Ge3BzkH0uUCRKNbfkMs7xONA>