[Scummvm-git-logs] scummvm master -> 318c40b0f7c243e4e1f031b8215a968f130afc8d
aquadran
aquadran at gmail.com
Sun Nov 7 14:42:38 UTC 2021
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
318c40b0f7 TINYGL: Added check for tglTexImage2D if texture is selected before
Commit: 318c40b0f7c243e4e1f031b8215a968f130afc8d
https://github.com/scummvm/scummvm/commit/318c40b0f7c243e4e1f031b8215a968f130afc8d
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2021-11-07T15:42:32+01:00
Commit Message:
TINYGL: Added check for tglTexImage2D if texture is selected before
Changed paths:
graphics/tinygl/texture.cpp
diff --git a/graphics/tinygl/texture.cpp b/graphics/tinygl/texture.cpp
index d5b04d1a0d..56738e63f0 100644
--- a/graphics/tinygl/texture.cpp
+++ b/graphics/tinygl/texture.cpp
@@ -186,6 +186,9 @@ void glopTexImage2D(GLContext *c, GLParam *p) {
if (border != 0)
error("tglTexImage2D: invalid border");
+ if (c->current_texture == nullptr) {
+ return;
+ }
c->current_texture->versionNumber++;
im = &c->current_texture->images[level];
im->xsize = c->_textureSize;
More information about the Scummvm-git-logs
mailing list