mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-01 14:24:02 +00:00
GLES: Skip freeing program if not allocated.
This could cause a crash when skipGLCalls is true, if null.
This commit is contained in:
parent
6130eb34be
commit
dcf71fc43f
@ -301,7 +301,7 @@ public:
|
||||
for (auto &iter : shaders) {
|
||||
iter->Release();
|
||||
}
|
||||
render_->DeleteProgram(program_);
|
||||
if (program_) render_->DeleteProgram(program_);
|
||||
if (depthStencil) depthStencil->Release();
|
||||
if (blend) blend->Release();
|
||||
if (raster) raster->Release();
|
||||
|
Loading…
x
Reference in New Issue
Block a user