Browse Source

Platform: doc++

pull/194/merge
Vladimír Vondruš 8 years ago
parent
commit
c77e6d7a15
  1. 11
      src/Magnum/Platform/Sdl2Application.cpp

11
src/Magnum/Platform/Sdl2Application.cpp

@ -249,9 +249,10 @@ bool Sdl2Application::tryCreate(const Configuration& configuration, const GLConf
#ifndef MAGNUM_TARGET_GLES #ifndef MAGNUM_TARGET_GLES
/* Fall back to (forward compatible) GL 2.1, if version is not /* Fall back to (forward compatible) GL 2.1, if version is not
user-specified and either core context creation fails or we are on user-specified and either core context creation fails or we are on
binary NVidia/AMD drivers on Linux/Windows. Instead of creating forward- binary NVidia/AMD drivers on Linux/Windows or Intel Windows drivers.
compatible context with highest available version, they force the Instead of creating forward-compatible context with highest available
version to the one specified, which is completely useless behavior. */ version, they force the version to the one specified, which is
completely useless behavior. */
#ifndef CORRADE_TARGET_APPLE #ifndef CORRADE_TARGET_APPLE
constexpr static const char nvidiaVendorString[] = "NVIDIA Corporation"; constexpr static const char nvidiaVendorString[] = "NVIDIA Corporation";
#ifdef CORRADE_TARGET_WINDOWS #ifdef CORRADE_TARGET_WINDOWS
@ -272,8 +273,8 @@ bool Sdl2Application::tryCreate(const Configuration& configuration, const GLConf
&& !_context->isDriverWorkaroundDisabled("no-forward-compatible-core-context")) && !_context->isDriverWorkaroundDisabled("no-forward-compatible-core-context"))
#endif #endif
)) { )) {
/* Don't print any warning when doing the NV workaround, because the /* Don't print any warning when doing the workaround, because the bug
bug will be there probably forever */ will be there probably forever */
if(!_glContext) Warning() if(!_glContext) Warning()
<< "Platform::Sdl2Application::tryCreate(): cannot create core context:" << "Platform::Sdl2Application::tryCreate(): cannot create core context:"
<< SDL_GetError() << "(falling back to compatibility context)"; << SDL_GetError() << "(falling back to compatibility context)";

Loading…
Cancel
Save