GLES: Skip freeing program if not allocated.

This could cause a crash when skipGLCalls is true, if null.
This commit is contained in:
Unknown W. Brackets 2018-10-30 19:14:02 -07:00
parent 6130eb34be
commit dcf71fc43f

View File

@ -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();