From d183232e69837fde090945557f5bc73c69c5d6cf Mon Sep 17 00:00:00 2001 From: "gregory.hainaut@gmail.com" Date: Sun, 22 Aug 2010 10:22:07 +0000 Subject: [PATCH] zzogl: Limit texture supported to 8k git-svn-id: http://pcsx2.googlecode.com/svn/trunk@3678 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/zzogl-pg/opengl/ZZoglCreate.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/zzogl-pg/opengl/ZZoglCreate.cpp b/plugins/zzogl-pg/opengl/ZZoglCreate.cpp index 1c679b3930..571fdd442b 100644 --- a/plugins/zzogl-pg/opengl/ZZoglCreate.cpp +++ b/plugins/zzogl-pg/opengl/ZZoglCreate.cpp @@ -497,6 +497,10 @@ bool ZeroGS::Create(int _width, int _height) // check the max texture width and height glGetIntegerv(GL_MAX_TEXTURE_SIZE, &g_MaxTexWidth); + // Limit the texture size supported to 8192. We do not need bigger texture. + // Besides the following assertion is false when texture are too big. + // ZZoglFlush.cpp:2349: assert(fblockstride >= 1.0f) + g_MaxTexWidth = min(8192, g_MaxTexWidth); g_MaxTexHeight = g_MaxTexWidth / 4; GPU_TEXWIDTH = g_MaxTexWidth / 8;