Misc tweaks.

This commit is contained in:
Ben Vanik
2015-01-04 04:59:26 -08:00
parent 34fb0e4a8a
commit eda38a7428
6 changed files with 14 additions and 5 deletions

View File

@@ -163,7 +163,6 @@ void CommandProcessor::WorkerMain() {
}
bool CommandProcessor::SetupGL() {
glViewport(0, 0, 1280, 720);
// Circular buffer holding scratch vertex/index data.
if (!scratch_buffer_.Initialize()) {
@@ -1580,6 +1579,8 @@ CommandProcessor::UpdateStatus CommandProcessor::UpdateRenderTargets(
// TODO(benvanik): can we do this all named?
// TODO(benvanik): do we want this on READ too?
glBindFramebuffer(GL_DRAW_FRAMEBUFFER, cached_framebuffer->framebuffer);
glViewport(0, 0, 1280, 720);
}
return UpdateStatus::kMismatch;