Subversion Repository Public Repository

Divide-Framework

This repository has no backups
This repository's network speed is throttled to 100KB/sec

Diff Revisions 868 vs 869 for /trunk/Source Code/Platform/Video/OpenGL/SDLWindowWrapper.cpp

Diff revisions: vs.
  @@ -41,10 +41,11 @@
41 41 }
42 42
43 43 bool init(U32 size, const DisplayWindow& window) {
44 + SDL_Window* raw = window.getRawWindow();
44 45 WriteLock w_lock(_glContextLock);
45 46 _contexts.resize(size, std::make_pair(nullptr, false));
46 47 for (std::pair<SDL_GLContext, bool>& ctx : _contexts) {
47 - ctx.first = SDL_GL_CreateContext(window.getRawWindow());
48 + ctx.first = SDL_GL_CreateContext(raw);
48 49 }
49 50 return true;
50 51 }