[Scummvm-cvs-logs] scummvm master -> 1e200620d673af4acdd2d128ed6e390df001aacf
lordhoto
lordhoto at gmail.com
Wed Oct 10 00:37:20 CEST 2012
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:
1e200620d6 IPHONE: Fix cursor artifacts when linear filterting is used.
Commit: 1e200620d673af4acdd2d128ed6e390df001aacf
https://github.com/scummvm/scummvm/commit/1e200620d673af4acdd2d128ed6e390df001aacf
Author: Johannes Schickel (lordhoto at scummvm.org)
Date: 2012-10-09T15:36:15-07:00
Commit Message:
IPHONE: Fix cursor artifacts when linear filterting is used.
We need to set a proper texture coordinate wrap parameter for this.
Changed paths:
backends/platform/iphone/iphone_video.mm
diff --git a/backends/platform/iphone/iphone_video.mm b/backends/platform/iphone/iphone_video.mm
index 54e5d63..2ae1b0e 100644
--- a/backends/platform/iphone/iphone_video.mm
+++ b/backends/platform/iphone/iphone_video.mm
@@ -268,6 +268,11 @@ const char *iPhone_getDocumentsDir() {
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MIN_FILTER, filter); printOpenGLError();
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, filter); printOpenGLError();
+ // We use GL_CLAMP_TO_EDGE here to avoid artifacts when linear filtering
+ // is used. If we would not use this for example the cursor in Loom would
+ // have a line/border artifact on the right side of the covered rect.
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_S, GL_CLAMP_TO_EDGE); printOpenGLError();
+ glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE); printOpenGLError();
}
- (void)setGraphicsMode {
More information about the Scummvm-git-logs
mailing list