[Scummvm-git-logs] scummvm master -> 0019131a4f1ccea2ad263da53a8ee9d6c9154a8d
lephilousophe
noreply at scummvm.org
Sun Apr 3 14:38:16 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:
0019131a4f MYST3: Setup texture before copying pixels to it
Commit: 0019131a4f1ccea2ad263da53a8ee9d6c9154a8d
https://github.com/scummvm/scummvm/commit/0019131a4f1ccea2ad263da53a8ee9d6c9154a8d
Author: Le Philousophe (lephilousophe at users.noreply.github.com)
Date: 2022-04-03T16:37:51+02:00
Commit Message:
MYST3: Setup texture before copying pixels to it
It's not needed according to the specification but it helps GL4ES and
makes Mesa diagnostics happy.
Changed paths:
engines/myst3/gfx_opengl_texture.cpp
diff --git a/engines/myst3/gfx_opengl_texture.cpp b/engines/myst3/gfx_opengl_texture.cpp
index 752828849cd..bae85ba2e7f 100644
--- a/engines/myst3/gfx_opengl_texture.cpp
+++ b/engines/myst3/gfx_opengl_texture.cpp
@@ -137,6 +137,7 @@ void OpenGLTexture::copyFromFramebuffer(const Common::Rect &screen) {
}
glBindTexture(GL_TEXTURE_2D, id);
+ glTexImage2D(GL_TEXTURE_2D, 0, internalFormat, internalWidth, internalHeight, 0, internalFormat, GL_UNSIGNED_BYTE, nullptr);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, GL_LINEAR);
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, GL_LINEAR);
More information about the Scummvm-git-logs
mailing list