[Scummvm-git-logs] scummvm master -> 621758f3f9bf911e676df92711370259e52668fd

aquadran aquadran at gmail.com
Sun Mar 14 12:38:03 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:
621758f3f9 ICB: Remove global constructor


Commit: 621758f3f9bf911e676df92711370259e52668fd
    https://github.com/scummvm/scummvm/commit/621758f3f9bf911e676df92711370259e52668fd
Author: Paweł Kołodziejski (aquadran at gmail.com)
Date: 2021-03-14T13:37:58+01:00

Commit Message:
ICB: Remove global constructor

Changed paths:
    engines/icb/stagedraw_pc_poly.cpp


diff --git a/engines/icb/stagedraw_pc_poly.cpp b/engines/icb/stagedraw_pc_poly.cpp
index 0e4706e4fa..af6de61e09 100644
--- a/engines/icb/stagedraw_pc_poly.cpp
+++ b/engines/icb/stagedraw_pc_poly.cpp
@@ -84,7 +84,6 @@ char *pZa = NULL;                           // buffer for actor z data
 char *pZfx = NULL;                          // buffer for fx z data
 char *pZ = NULL;                            // Current z buffer being used by the renderer
 int32 mip_map_level = 0;
-TextureManager the_tman;
 #define ZBUFFERSIZE (2 * SCREEN_WIDTH * SCREEN_DEPTH)
 
 // Stage draw composition table ... keeps track of the tiles which need drawing
@@ -93,7 +92,7 @@ uint32 *pUsedTiles = NULL;
 // Init the dutch dll thing render device etc...
 void InitRevRenderDevice() {
 	InitDrawing();
-	tman = &the_tman;
+	tman = new TextureManager;
 	tman->Init(0, 0, 1024, 512);
 
 	if (!pActorBuffer) {
@@ -127,6 +126,8 @@ void InitRevRenderDevice() {
 }
 
 void DestoryRevRenderDevice() {
+	if (tman)
+		delete tman;
 	if (pActorBuffer)
 		delete[] pActorBuffer;
 




More information about the Scummvm-git-logs mailing list