GPU: Restart when changing inflight frames setting.

We need to keep the push and pull in step, so changing at runtime is
messy.
This commit is contained in:
Unknown W. Brackets
2020-03-02 19:21:15 -08:00
parent fa8968f5c6
commit 051a84e9bd
15 changed files with 44 additions and 24 deletions
+1
View File
@@ -19,6 +19,7 @@ bool AndroidJavaEGLGraphicsContext::InitFromRenderThread(ANativeWindow *wnd, int
g_display_rot_matrix.setIdentity();
draw_ = Draw::T3DCreateGLContext();
renderManager_ = (GLRenderManager *)draw_->GetNativeObject(Draw::NativeObject::RENDER_MANAGER);
renderManager_->SetInflightFrames(g_Config.iInflightFrames);
bool success = draw_->CreatePresets();
_assert_msg_(G3D, success, "Failed to compile preset shaders");
return success;