[Scummvm-git-logs] scummvm master -> d92c8dd5952b0ac366aabdc11f1235becc115717

aquadran noreply at scummvm.org
Wed Dec 15 19:34:33 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:
d92c8dd595 TINYGL: Fixed taking depth write mask argument


Commit: d92c8dd5952b0ac366aabdc11f1235becc115717
    https://github.com/scummvm/scummvm/commit/d92c8dd5952b0ac366aabdc11f1235becc115717
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2021-12-15T20:34:27+01:00

Commit Message:
TINYGL: Fixed taking depth write mask argument

Changed paths:
    graphics/tinygl/misc.cpp


diff --git a/graphics/tinygl/misc.cpp b/graphics/tinygl/misc.cpp
index 59c41a3d87..07458945cc 100644
--- a/graphics/tinygl/misc.cpp
+++ b/graphics/tinygl/misc.cpp
@@ -212,7 +212,7 @@ void GLContext::glopColorMask(GLParam *p) {
 }
 
 void GLContext::glopDepthMask(GLParam *p) {
-	depth_write_mask = p[1].i;
+	depth_write_mask = p[1].i == TGL_TRUE;
 }
 
 void GLContext::glopStencilMask(TinyGL::GLParam *p) {




More information about the Scummvm-git-logs mailing list