Browse Source

Platform: fix compilation of WindowlessWindowsEglApplication.

pull/185/merge
Vladimír Vondruš 10 years ago
parent
commit
9fcfd5ee25
  1. 10
      src/Magnum/Platform/WindowlessWindowsEglApplication.cpp

10
src/Magnum/Platform/WindowlessWindowsEglApplication.cpp

@ -66,7 +66,7 @@ WindowlessWindowsEglContext::WindowlessWindowsEglContext(const Configuration& co
_display = eglGetDisplay(GetDC(_window)); _display = eglGetDisplay(GetDC(_window));
if(!eglInitialize(_display, nullptr, nullptr)) { if(!eglInitialize(_display, nullptr, nullptr)) {
Error() << "Platform::WindowlessWindowsEglApplication::tryCreateContext(): cannot initialize EGL:" << Implementation::eglErrorString(eglGetError()); Error() << "Platform::WindowlessWindowsEglApplication::tryCreateContext(): cannot initialize EGL:" << Implementation::eglErrorString(eglGetError());
return false; return;
} }
const EGLenum api = const EGLenum api =
@ -78,7 +78,7 @@ WindowlessWindowsEglContext::WindowlessWindowsEglContext(const Configuration& co
; ;
if(!eglBindAPI(api)) { if(!eglBindAPI(api)) {
Error() << "Platform::WindowlessWindowsEglApplication::tryCreateContext(): cannot bind EGL API:" << Implementation::eglErrorString(eglGetError()); Error() << "Platform::WindowlessWindowsEglApplication::tryCreateContext(): cannot bind EGL API:" << Implementation::eglErrorString(eglGetError());
return false; return;
} }
/* Choose EGL config */ /* Choose EGL config */
@ -102,12 +102,12 @@ WindowlessWindowsEglContext::WindowlessWindowsEglContext(const Configuration& co
EGLConfig config; EGLConfig config;
if(!eglChooseConfig(_display, attribs, &config, 1, &configCount)) { if(!eglChooseConfig(_display, attribs, &config, 1, &configCount)) {
Error() << "Platform::WindowlessWindowsEglApplication::tryCreateContext(): cannot get EGL visual config:" << Implementation::eglErrorString(eglGetError()); Error() << "Platform::WindowlessWindowsEglApplication::tryCreateContext(): cannot get EGL visual config:" << Implementation::eglErrorString(eglGetError());
return false; return;
} }
if(!configCount) { if(!configCount) {
Error() << "Platform::WindowlessWindowsEglApplication::tryCreateContext(): no matching EGL visual config available"; Error() << "Platform::WindowlessWindowsEglApplication::tryCreateContext(): no matching EGL visual config available";
return false; return;
} }
const EGLint attributes[] = { const EGLint attributes[] = {
@ -173,7 +173,7 @@ WindowlessWindowsEglApplication::WindowlessWindowsEglApplication(const Arguments
createContext(configuration); createContext(configuration);
} }
WindowlessWindowsEglApplication::WindowlessWindowsEglApplication(const Arguments& arguments, std::nullptr_t): _glContext{NoCreate}, _context{new Context{NoCreate, arguments.argc, arguments.argv}} {} WindowlessWindowsEglApplication::WindowlessWindowsEglApplication(const Arguments& arguments, NoCreateT): _glContext{NoCreate}, _context{new Context{NoCreate, arguments.argc, arguments.argv}} {}
void WindowlessWindowsEglApplication::createContext() { createContext({}); } void WindowlessWindowsEglApplication::createContext() { createContext({}); }

Loading…
Cancel
Save