From fb61ec51cb2de3da614ad0bf6c341a2af5ed4d54 Mon Sep 17 00:00:00 2001 From: libretroadmin Date: Tue, 13 Oct 2026 13:50:33 +0200 Subject: [PATCH] libretro: create the GL presets once LibretroHWRenderContext::ContextReset() already creates them right after CreateDrawContext(), so the GL contexts' own call leaked the first set. (The libretro part of 329f30a0c9 from libretro-fork/psp.) Co-Authored-By: Claude Opus 5.5 (1M context) --- libretro/LibretroGLContext.cpp | 1 - libretro/LibretroGLCoreContext.cpp | 1 - 2 files changed, 2 deletions(-) diff --git a/libretro/LibretroGLContext.cpp b/libretro/LibretroGLContext.cpp index 3ac3765a97..48cfc1bba8 100644 --- a/libretro/LibretroGLContext.cpp +++ b/libretro/LibretroGLContext.cpp @@ -35,7 +35,6 @@ void LibretroGLContext::CreateDrawContext() { renderManager_ = (GLRenderManager *)draw_->GetNativeObject(Draw::NativeObject::RENDER_MANAGER); renderManager_->SetInflightFrames(g_Config.iInflightFrames); SetGPUBackend(GPUBackend::OPENGL); - draw_->CreatePresets(); } void LibretroGLContext::DestroyDrawContext() { diff --git a/libretro/LibretroGLCoreContext.cpp b/libretro/LibretroGLCoreContext.cpp index de549e0380..7417a60434 100644 --- a/libretro/LibretroGLCoreContext.cpp +++ b/libretro/LibretroGLCoreContext.cpp @@ -37,7 +37,6 @@ void LibretroGLCoreContext::CreateDrawContext() { renderManager_ = (GLRenderManager *)draw_->GetNativeObject(Draw::NativeObject::RENDER_MANAGER); renderManager_->SetInflightFrames(g_Config.iInflightFrames); SetGPUBackend(GPUBackend::OPENGL); - draw_->CreatePresets(); } void LibretroGLCoreContext::DestroyDrawContext() {