GL context on command processor.

This commit is contained in:
Ben Vanik
2014-12-23 20:32:41 -08:00
parent e8de42d9ea
commit 02d52167d3
7 changed files with 569 additions and 62 deletions

View File

@@ -56,13 +56,7 @@ bool WGLControl::Create() {
return false;
}
HDC dc = GetDC(hwnd_);
if (!dc) {
PLOGE("No DC for WGL window");
return false;
}
if (!context_.Initialize(dc)) {
if (!context_.Initialize(hwnd_)) {
PFATAL("Unable to initialize GL context");
return false;
}