mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-03 17:37:18 +00:00
044e784072
gl4es feature detection does not work reliably with EGL. If a context already exists, gl4es can instead reliably detect the underlying GLES features from the context itself. This requires gl4es to be configured with: -DNOEGL=ON -DNO_LOADER=ON -DNO_INIT_CONSTRUCTOR=ON This also requires gl4es to have this fix: https://github.com/ptitSeb/gl4es/pull/271
14 lines
440 B
C
14 lines
440 B
C
#ifndef OPENMW_COMPONENTS_SDLUTIL_GL4ES_INIT_H
|
|
#define OPENMW_COMPONENTS_SDLUTIL_GL4ES_INIT_H
|
|
#ifdef OPENMW_GL4ES_MANUAL_INIT
|
|
#include <SDL_video.h>
|
|
|
|
// Must be called once SDL video mode has been set,
|
|
// which creates a context.
|
|
//
|
|
// GL4ES can then query the context for features and extensions.
|
|
extern "C" void openmw_gl4es_init(SDL_Window *window);
|
|
|
|
#endif // OPENMW_GL4ES_MANUAL_INIT
|
|
#endif // OPENMW_COMPONENTS_SDLUTIL_GL4ES_INIT_H
|