Permalink
Browse files

GLES: Skip freeing program if not allocated.

This could cause a crash when skipGLCalls is true, if null.
  • Loading branch information...
unknownbrackets committed Oct 31, 2018
1 parent 6130eb3 commit dcf71fc43f109060a8f35ee40b22e9173928911b
Showing with 1 addition and 1 deletion.
  1. +1 −1 ext/native/thin3d/thin3d_gl.cpp
@@ -301,7 +301,7 @@ class OpenGLPipeline : public Pipeline {
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();

0 comments on commit dcf71fc

Please sign in to comment.