GIT
/
REPO
/
FRED-BOY
Projects
/
flatwaifu.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4026d71
)
opengl: limit cache texture to 512x512
author
DeaDDooMER <deaddoomer@deadsoftware.ru>
Thu, 19 Mar 2020 18:08:25 +0000
(21:08 +0300)
committer
DeaDDooMER <deaddoomer@deadsoftware.ru>
Thu, 19 Mar 2020 18:08:25 +0000
(21:08 +0300)
src/gl/render.c
patch
|
blob
|
history
diff --git
a/src/gl/render.c
b/src/gl/render.c
index e74d6bb5229989165983fcc619a715a25cfdd41c..6b62793494c418920d95a9206420ceba7e3c1aae 100644
(file)
--- 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) {
DEADSOFTWARE 2012-2025