From: DeaDDooMER Date: Thu, 19 Mar 2020 18:08:25 +0000 (+0300) Subject: opengl: limit cache texture to 512x512 X-Git-Url: http://deadsoftware.ru/gitweb?a=commitdiff_plain;h=f333581fff4a1ef2f4d4af740f6a175c8c6dec91;p=flatwaifu.git opengl: limit cache texture to 512x512 --- diff --git a/src/gl/render.c b/src/gl/render.c index e74d6bb..6b62793 100644 --- a/src/gl/render.c +++ b/src/gl/render.c @@ -215,7 +215,7 @@ static cache *R_cache_new (void) { GLint size = 0; cache *c = NULL; glGetIntegerv(GL_MAX_TEXTURE_SIZE, &size); - size /= 2; // TODO remove hack or detect ibook bug + size = size < 512 ? size : 512; // more can be buggy on older hardware if (size) { glGenTextures(1, &id); if (id) {