summaryrefslogtreecommitdiff
path: root/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp
diff options
context:
space:
mode:
authorRyan Houdek <Sonicadvance1@Gmail.com>2012-10-27 22:50:06 -0500
committerRyan Houdek <Sonicadvance1@Gmail.com>2012-10-27 22:50:06 -0500
commitfb92c338af83a56edaabaea13168696e3cf1c7c7 (patch)
treed767abc87c34dff0ee242d1b50557528072b1b01 /Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp
parentdfb3c44d1a9b641f71ac4a93cd871b8d69dde542 (diff)
Bit of cleanup and fixing of one issue that was noticeable in SMS with Mario's shadow.
Diffstat (limited to 'Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp')
-rw-r--r--Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp b/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp
index 052727e1b0..797ba39c10 100644
--- a/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp
+++ b/Source/Plugins/Plugin_VideoOGL/Src/TextureCache.cpp
@@ -306,23 +306,22 @@ void TextureCache::TCacheEntry::FromRenderTarget(u32 dstAddr, unsigned int dstFo
TargetRectangle targetSource = g_renderer->ConvertEFBRectangle(srcRect);
GL_REPORT_ERRORD();
-
GLfloat tex1[] = {
- (GLfloat)targetSource.left, (GLfloat)targetSource.bottom,
- (GLfloat)targetSource.left, (GLfloat)targetSource.top,
- (GLfloat)targetSource.right, (GLfloat)targetSource.top,
- (GLfloat)targetSource.right, (GLfloat)targetSource.bottom
+ (GLfloat)targetSource.left, (GLfloat)targetSource.bottom,
+ (GLfloat)targetSource.left, (GLfloat)targetSource.top,
+ (GLfloat)targetSource.right, (GLfloat)targetSource.top,
+ (GLfloat)targetSource.right, (GLfloat)targetSource.bottom
};
GLfloat vtx1[] = {
- -1, 1, 1,
- -1, -1, 1,
- 1, -1, 1,
- 1, 1, 1
+ -1.f, 1.f,
+ -1.f, -1.f,
+ 1.f, -1.f,
+ 1.f, 1.f
};
+
glTexCoordPointer(2, GL_FLOAT, 0, tex1);
- glVertexPointer(3, GL_FLOAT, 0, vtx1);
+ glVertexPointer(2, GL_FLOAT, 0, vtx1);
glDrawArrays(GL_TRIANGLE_FAN, 0, 4);
-
GL_REPORT_ERRORD();