|
|
|
@ -32,9 +32,9 @@ |
|
|
|
#include "Magnum/Platform/Implementation/OpenGLFunctionLoader.h" |
|
|
|
#include "Magnum/Platform/Implementation/OpenGLFunctionLoader.h" |
|
|
|
|
|
|
|
|
|
|
|
#ifdef MAGNUM_PLATFORM_USE_EGL |
|
|
|
#ifdef MAGNUM_PLATFORM_USE_EGL |
|
|
|
#include <cstring> |
|
|
|
|
|
|
|
#include <EGL/egl.h> |
|
|
|
#include <EGL/egl.h> |
|
|
|
#include <Corrade/Containers/StringView.h> |
|
|
|
#include <Corrade/Containers/StringView.h> |
|
|
|
|
|
|
|
|
|
|
|
#include "Magnum/GL/Context.h" |
|
|
|
#include "Magnum/GL/Context.h" |
|
|
|
#endif |
|
|
|
#endif |
|
|
|
|
|
|
|
|
|
|
|
@ -49,8 +49,8 @@ void flextGLInit(Magnum::GL::Context& context) { |
|
|
|
linked GL 1.0 and 1.1 functions (such as glGetString()) and one has |
|
|
|
linked GL 1.0 and 1.1 functions (such as glGetString()) and one has |
|
|
|
to retrieve them explicitly using eglGetProcAddress(). */ |
|
|
|
to retrieve them explicitly using eglGetProcAddress(). */ |
|
|
|
EGLDisplay display = eglGetCurrentDisplay(); |
|
|
|
EGLDisplay display = eglGetCurrentDisplay(); |
|
|
|
const char* vendor = eglQueryString(display, EGL_VENDOR); |
|
|
|
const Corrade::Containers::StringView vendor = eglQueryString(display, EGL_VENDOR); |
|
|
|
if(std::strcmp(vendor, "NVIDIA") == 0 && !context.isDriverWorkaroundDisabled("nv-egl-incorrect-gl11-function-pointers"_s)) { |
|
|
|
if(vendor == "NVIDIA"_s && !context.isDriverWorkaroundDisabled("nv-egl-incorrect-gl11-function-pointers"_s)) { |
|
|
|
@for category,funcs in functions: |
|
|
|
@for category,funcs in functions: |
|
|
|
@if funcs and category in ['VERSION_1_0', 'VERSION_1_1']: |
|
|
|
@if funcs and category in ['VERSION_1_0', 'VERSION_1_1']: |
|
|
|
|
|
|
|
|
|
|
|
|