Android: Remove some state and a race condition

This commit is contained in:
Henrik Rydgård committed 2026-07-24 15:31:42 +02:00
1 parent 86c8e9ae68
commit 906d877019
4 files changed
+5 -40

No files matched your search

-4
View File
@@ -14,7 +14,6 @@ bool AndroidJavaEGLGraphicsContext::InitFromRenderThread(ANativeWindow *wnd, int
INFO_LOG(Log::G3D, "AndroidJavaEGLGraphicsContext::InitFromRenderThread");
if (!CheckGLExtensions()) {
ERROR_LOG(Log::G3D, "CheckGLExtensions failed - not gonna attempt starting up.");
state_ = GraphicsContextState::FAILED_INIT;
return false;
}
@@ -29,10 +28,8 @@ bool AndroidJavaEGLGraphicsContext::InitFromRenderThread(ANativeWindow *wnd, int
if (!draw_->CreatePresets()) {
// This can't really happen now that compilation is async - they're only really queued for compile here.
_assert_msg_(false, "Failed to compile preset shaders");
state_ = GraphicsContextState::FAILED_INIT;
return false;
}
state_ = GraphicsContextState::INITIALIZED;
return true;
}
@@ -41,5 +38,4 @@ void AndroidJavaEGLGraphicsContext::ShutdownFromRenderThread() {
renderManager_ = nullptr; // owned by draw_.
delete draw_;
draw_ = nullptr;
state_ = GraphicsContextState::SHUTDOWN;
}