[Scummvm-git-logs] scummvm master -> 5c81440ed2b48fa29d1cbdf5563a399686df380b

aquadran noreply at scummvm.org
Fri Oct 3 12:51:33 UTC 2025


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .

Summary:
5c81440ed2 WINTERMUTE: Remove not needed code in TinyGL renderer


Commit: 5c81440ed2b48fa29d1cbdf5563a399686df380b
    https://github.com/scummvm/scummvm/commit/5c81440ed2b48fa29d1cbdf5563a399686df380b
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2025-10-03T14:51:28+02:00

Commit Message:
WINTERMUTE: Remove not needed code in TinyGL renderer

Changed paths:
    engines/wintermute/base/gfx/tinygl/base_surface_tinygl.cpp


diff --git a/engines/wintermute/base/gfx/tinygl/base_surface_tinygl.cpp b/engines/wintermute/base/gfx/tinygl/base_surface_tinygl.cpp
index 3e969270d07..a53c6c5cd92 100644
--- a/engines/wintermute/base/gfx/tinygl/base_surface_tinygl.cpp
+++ b/engines/wintermute/base/gfx/tinygl/base_surface_tinygl.cpp
@@ -269,14 +269,6 @@ bool BaseSurfaceTinyGL::create(int width, int height) {
 	_width = width;
 	_height = height;
 
-	if (!_texture2D) {
-		if (!_valid) {
-			tglGenTextures(1, &_tex);
-		}
-		tglBindTexture(TGL_TEXTURE_2D, _tex);
-		tglTexImage2D(TGL_TEXTURE_2D, 0, TGL_RGBA, _width, _height, 0, TGL_RGBA, TGL_UNSIGNED_BYTE, nullptr);
-		tglBindTexture(TGL_TEXTURE_2D, 0);
-	}
 	_valid = true;
 	return true;
 }




More information about the Scummvm-git-logs mailing list