}
void
-eng_gl_symbols(void)
+eng_gl_symbols(Eina_Bool noext_glXCreatePixmap)
{
static int done = 0;
if (done) return;
#ifdef GL_GLES
+ (void) noext_glXCreatePixmap;
+
#define FINDSYM(dst, sym, typ) \
if (glsym_eglGetProcAddress) { \
if (!dst) dst = (typ)glsym_eglGetProcAddress(sym); \
glsym_evas_gl_symbols((void*)glsym_glXGetProcAddress);
+ if (noext_glXCreatePixmap)
+ {
+ /* Note for nvidia >= 360:
+ * glXBindTexImage{EXT,ARB} should be preferred over glXBindTexImage
+ * glXCreatePixmap should be preferred over glXCreatePixmap{EXT,ARB}
+ */
+ FINDSYM(glsym_glXCreatePixmap, "glXCreatePixmap", glsym_func_xid);
+ FINDSYM(glsym_glXDestroyPixmap, "glXDestroyPixmap", glsym_func_void);
+ }
+
FINDSYM(glsym_glXBindTexImage, "glXBindTexImageEXT", glsym_func_void);
FINDSYM(glsym_glXBindTexImage, "glXBindTexImageARB", glsym_func_void);
FINDSYM(glsym_glXBindTexImage, "glXBindTexImage", glsym_func_void);
unsigned char msaa;
#ifndef GL_GLES
Eina_Bool loose_binding : 1;
+ Eina_Bool noext_glXCreatePixmap : 1;
#endif
} detected;
void *eng_outbuf_egl_display_get(Outbuf *ob);
Eina_Bool eng_preload_make_current(void *data, void *doit);
-void eng_gl_symbols(void);
+void eng_gl_symbols(Eina_Bool noext_glXCreatePixmap);
static inline int
_re_wincheck(Outbuf *ob)
// ALSO as of some nvidia driver version loose binding is
// probably not needed
if (v1 < 195) gw->detected.loose_binding = 1;
+ if (v1 >= 360) gw->detected.noext_glXCreatePixmap = 1;
}
}
else
gw->detected.msaa = val;
#endif
- eng_gl_symbols();
+ eng_gl_symbols(gw->detected.noext_glXCreatePixmap);
gw->gl_context = glsym_evas_gl_common_context_new();
if (!gw->gl_context)
{