[Scummvm-git-logs] scummvm master -> a8dcf7dbbd9daccd478a416b8cc6d99f796dbb64
aquadran
aquadran at gmail.com
Tue Nov 9 16:09:19 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:
a8dcf7dbbd TINYGL: Added check if texture is uploaded
Commit: a8dcf7dbbd9daccd478a416b8cc6d99f796dbb64
https://github.com/scummvm/scummvm/commit/a8dcf7dbbd9daccd478a416b8cc6d99f796dbb64
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2021-11-09T17:09:13+01:00
Commit Message:
TINYGL: Added check if texture is uploaded
Changed paths:
graphics/tinygl/clip.cpp
diff --git a/graphics/tinygl/clip.cpp b/graphics/tinygl/clip.cpp
index c3d7440cec..1e8798e072 100644
--- a/graphics/tinygl/clip.cpp
+++ b/graphics/tinygl/clip.cpp
@@ -407,7 +407,7 @@ void gl_draw_triangle_fill(GLContext *c, GLVertex *p0, GLVertex *p1, GLVertex *p
} else if (c->shadow_mode & 2) {
assert(c->fb->shadow_mask_buf);
c->fb->fillTriangleFlatShadow(&p0->zp, &p1->zp, &p2->zp);
- } else if (c->texture_2d_enabled && c->current_texture) {
+ } else if (c->texture_2d_enabled && c->current_texture && c->current_texture->images[0].pixmap) {
#ifdef TINYGL_PROFILE
count_triangles_textured++;
#endif
More information about the Scummvm-git-logs
mailing list