Evas: Remove a useless ifdef that was causing dead code.
You can't compile a gl_common .c file based on whether or not the SDL header was included. The .c file will result in only one .o and since the Evas_Engine_Sdl.h is not included by evas_gl_context.c itself, then that ifdef will never be true. gl_common should request a callback function pointer from the evas engine for doing symbol resolution. This needs a refactor. SVN revision: 64086
This commit is contained in:
parent
4866f72938
commit
74c3fe766e
|
@ -48,11 +48,11 @@ gl_symbols(void)
|
||||||
if (sym_done) return;
|
if (sym_done) return;
|
||||||
sym_done = 1;
|
sym_done = 1;
|
||||||
|
|
||||||
#ifdef _EVAS_ENGINE_SDL_H
|
/* FIXME: If using the SDL engine, we should use SDL_GL_GetProcAddress
|
||||||
# define FINDSYM(dst, sym, typ) if (!dst) dst = (typ)SDL_GL_GetProcAddress(sym)
|
* instead of dlsym
|
||||||
#else
|
* if (!dst) dst = (typ)SDL_GL_GetProcAddress(sym)
|
||||||
# define FINDSYM(dst, sym, typ) if (!dst) dst = (typ)dlsym(RTLD_DEFAULT, sym)
|
*/
|
||||||
#endif
|
#define FINDSYM(dst, sym, typ) if (!dst) dst = (typ)dlsym(RTLD_DEFAULT, sym)
|
||||||
#define FALLBAK(dst, typ) if (!dst) dst = (typ)sym_missing;
|
#define FALLBAK(dst, typ) if (!dst) dst = (typ)sym_missing;
|
||||||
|
|
||||||
FINDSYM(glsym_glGenFramebuffers, "glGenFramebuffers", glsym_func_void);
|
FINDSYM(glsym_glGenFramebuffers, "glGenFramebuffers", glsym_func_void);
|
||||||
|
|
Loading…
Reference in New Issue