[Scummvm-git-logs] scummvm master -> 8ee4251f41d4b44091fa1a6168dd578f3e17a943

digitall noreply at scummvm.org
Thu Jun 30 00:07:23 UTC 2022


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:
8ee4251f41 OPENGL: Fix Integer to Pointer Cast GCC Compiler Warning


Commit: 8ee4251f41d4b44091fa1a6168dd578f3e17a943
    https://github.com/scummvm/scummvm/commit/8ee4251f41d4b44091fa1a6168dd578f3e17a943
Author: D G Turner (digitall at scummvm.org)
Date: 2022-06-30T01:04:59+01:00

Commit Message:
OPENGL: Fix Integer to Pointer Cast GCC Compiler Warning

This is emitted when -Wint-to-pointer-cast is passed to GCC.

Changed paths:
    graphics/opengl/shader.cpp


diff --git a/graphics/opengl/shader.cpp b/graphics/opengl/shader.cpp
index 2ef2f2a8fe2..57bbb78fac9 100644
--- a/graphics/opengl/shader.cpp
+++ b/graphics/opengl/shader.cpp
@@ -363,7 +363,7 @@ void Shader::enableVertexAttribute(const char *attrib, GLuint vbo, GLint size, G
 	va._type = type;
 	va._normalized = normalized;
 	va._stride = stride;
-	va._pointer = (const void *)offset;
+	va._pointer = (const void *)(long)offset;
 }
 
 void Shader::disableVertexAttribute(const char *attrib, int size, const float *data) {




More information about the Scummvm-git-logs mailing list