[Scummvm-git-logs] scummvm master -> 546ccf31c1bf56d3c8b2f6727e047fec46fd3032
klusark
noreply at scummvm.org
Mon Nov 9 19:07:32 UTC 2026
This automated email contains information about 2 new commits which have been
pushed to the 'scummvm' repo located at https://api.github.com/repos/scummvm/scummvm .
Summary:
a2b3991651 GRIM: Increase the TinyGL Buffer to 6mb
546ccf31c1 TINYGL: Fix tglLightfv for TGL_SPOT_DIRECTION not using any values
Commit: a2b3991651adbe4c87b7716c55509b3dad61e874
https://github.com/scummvm/scummvm/commit/a2b3991651adbe4c87b7716c55509b3dad61e874
Author: Joel Teichroeb (joel at teichroeb.net)
Date: 2026-11-09T14:01:14-05:00
Commit Message:
GRIM: Increase the TinyGL Buffer to 6mb
Changed paths:
engines/grim/gfx_tinygl.cpp
diff --git a/engines/grim/gfx_tinygl.cpp b/engines/grim/gfx_tinygl.cpp
index 3181f184532..7dd42e9f895 100644
--- a/engines/grim/gfx_tinygl.cpp
+++ b/engines/grim/gfx_tinygl.cpp
@@ -86,7 +86,11 @@ void GfxTinyGL::setupScreen(int screenW, int screenH) {
_pixelFormat = g_system->getScreenFormat();
debug(2, "INFO: TinyGL front buffer pixel format: %s", _pixelFormat.toString().c_str());
- TinyGL::createContext(screenW, screenH, _pixelFormat, 256, true, ConfMan.getBool("dirtyrects"));
+
+ // The default 5 MB per-frame draw call allocator is not enough for the Blue Casket interior (bi.set)
+ // during the cutscene where Olivia and Nick kiss
+ TinyGL::createContext(screenW, screenH, _pixelFormat, 256, true, ConfMan.getBool("dirtyrects"),
+ 6 * 1024 * 1024);
_storedDisplay = new Graphics::Surface;
_storedDisplay->create(_gameWidth, _gameHeight, _pixelFormat);
Commit: 546ccf31c1bf56d3c8b2f6727e047fec46fd3032
https://github.com/scummvm/scummvm/commit/546ccf31c1bf56d3c8b2f6727e047fec46fd3032
Author: Joel Teichroeb (joel at teichroeb.net)
Date: 2026-11-09T14:05:04-05:00
Commit Message:
TINYGL: Fix tglLightfv for TGL_SPOT_DIRECTION not using any values
Read the 3 values and set the 4th to 0
Assisted-by: Claude:claude-opus-5-5
Changed paths:
graphics/tinygl/api.cpp
diff --git a/graphics/tinygl/api.cpp b/graphics/tinygl/api.cpp
index a6670575294..72e556502d8 100644
--- a/graphics/tinygl/api.cpp
+++ b/graphics/tinygl/api.cpp
@@ -581,8 +581,9 @@ void tglLightfv(TGLenum light, TGLenum type, const TGLfloat *v) {
p[0].op = TinyGL::OP_Light;
p[1].i = light;
p[2].i = type;
+ int num = type == TGL_SPOT_DIRECTION ? 3 : 4;
for (int i = 0; i < 4; i++) {
- if (type != TGL_SPOT_DIRECTION)
+ if (i < num)
p[3 + i].f = v[i];
else
p[3 + i].f = 0.0f;
More information about the Scummvm-git-logs
mailing list