Basic render target/framebuffer setup.

This commit is contained in:
Ben Vanik
2014-12-24 01:48:19 -08:00
parent 02d52167d3
commit 3dffc72e59
5 changed files with 324 additions and 51 deletions

View File

@@ -106,6 +106,10 @@ bool GLContext::Initialize(HWND hwnd) {
return false;
}
while (glGetError()) {
// Clearing errors.
}
return true;
}
@@ -145,6 +149,10 @@ std::unique_ptr<GLContext> GLContext::CreateShared() {
new_context->ClearCurrent();
MakeCurrent();
while (glGetError()) {
// Clearing errors.
}
return new_context;
}