From 66c8b8381e95a7bae1f8e1c6f1bd4680bf4a4d73 Mon Sep 17 00:00:00 2001 From: arcum42 Date: Wed, 18 Aug 2010 13:38:45 +0000 Subject: [PATCH] zzogl-pg: Quick Windows fix for an issue introduced in zzogl r218. Fix a typo. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3663 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/zzogl-pg/opengl/targets.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/zzogl-pg/opengl/targets.h b/plugins/zzogl-pg/opengl/targets.h index de2061076d..6a26facfc0 100644 --- a/plugins/zzogl-pg/opengl/targets.h +++ b/plugins/zzogl-pg/opengl/targets.h @@ -23,6 +23,10 @@ #define TARGET_VIRTUAL_KEY 0x80000000 #include "PS2Edefs.h" +#ifndef GL_TEXTURE_RECTANGLE +#define GL_TEXTURE_RECTANGLE GL_TEXTURE_RECTANGLE_NV +#endif + inline Vector DefaultOneColor(FRAGMENTSHADER ptr) { Vector v = Vector(1, 1, 1, 1); @@ -347,7 +351,7 @@ static __forceinline void TextureRect(GLint iFormat, GLint width, GLint height, static __forceinline void TextureRect2(GLint iFormat, GLint width, GLint height, GLenum format, GLenum type, const GLvoid* pixels) { - glTexImage2D(GL_TEXTURE_RECTANGLE_NV, 0, iFormat, width, height, 0, format, type, pixels); + glTexImage2D(GL_TEXTURE_RECTANGLE, 0, iFormat, width, height, 0, format, type, pixels); } static __forceinline void TextureRect(GLenum attach, GLuint id = 0)