[Scummvm-git-logs] scummvm master -> 3ed4be59c8b403643bdc8209141b8bd4a80c0bfd
aquadran
noreply at scummvm.org
Sat Dec 4 14:59:43 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:
3ed4be59c8 MYST3: Fixed tglTexImage2D calls in software renderer
Commit: 3ed4be59c8b403643bdc8209141b8bd4a80c0bfd
https://github.com/scummvm/scummvm/commit/3ed4be59c8b403643bdc8209141b8bd4a80c0bfd
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2021-12-04T15:59:34+01:00
Commit Message:
MYST3: Fixed tglTexImage2D calls in software renderer
Changed paths:
engines/myst3/gfx_tinygl_texture.cpp
diff --git a/engines/myst3/gfx_tinygl_texture.cpp b/engines/myst3/gfx_tinygl_texture.cpp
index 42e64bb5bd..a6b410aac3 100644
--- a/engines/myst3/gfx_tinygl_texture.cpp
+++ b/engines/myst3/gfx_tinygl_texture.cpp
@@ -41,7 +41,7 @@ TinyGLTexture::TinyGLTexture(const Graphics::Surface *surface) {
tglGenTextures(1, &id);
tglBindTexture(TGL_TEXTURE_2D, id);
- tglTexImage2D(TGL_TEXTURE_2D, 0, 3, width, height, 0, internalFormat, sourceFormat, nullptr);
+ tglTexImage2D(TGL_TEXTURE_2D, 0, internalFormat, width, height, 0, internalFormat, sourceFormat, nullptr);
tglTexParameteri(TGL_TEXTURE_2D, TGL_TEXTURE_MIN_FILTER, TGL_LINEAR);
tglTexParameteri(TGL_TEXTURE_2D, TGL_TEXTURE_MAG_FILTER, TGL_LINEAR);
@@ -60,7 +60,7 @@ TinyGLTexture::~TinyGLTexture() {
void TinyGLTexture::update(const Graphics::Surface *surface) {
tglBindTexture(TGL_TEXTURE_2D, id);
- tglTexImage2D(TGL_TEXTURE_2D, 0, 3, width, height, 0,
+ tglTexImage2D(TGL_TEXTURE_2D, 0, internalFormat, width, height, 0,
internalFormat, sourceFormat, const_cast<void *>(surface->getPixels())); // TESTME: Not sure if it works.
Graphics::tglUploadBlitImage(_blitImage, *surface, 0, false);
}
More information about the Scummvm-git-logs
mailing list