diff options
author | Antony Riakiotakis <kalast@gmail.com> | 2013-04-12 21:56:07 +0400 |
---|---|---|
committer | Antony Riakiotakis <kalast@gmail.com> | 2013-04-12 21:56:07 +0400 |
commit | d0beabb642ea8acb8e3d69aa3fc503ad703e7dfd (patch) | |
tree | 35684f2a142bd21b4e1c380ad61a8d8ff9df25c9 /source/blender/windowmanager/intern/wm_draw.c | |
parent | a305452275207a555d2812c3a5ea6647f0f594e4 (diff) |
Add function to query maximum texture size. Also, make texture upload
functions aware of this limit.
Diffstat (limited to 'source/blender/windowmanager/intern/wm_draw.c')
-rw-r--r-- | source/blender/windowmanager/intern/wm_draw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/windowmanager/intern/wm_draw.c b/source/blender/windowmanager/intern/wm_draw.c index 444f8cc57c8..e437d7c0958 100644 --- a/source/blender/windowmanager/intern/wm_draw.c +++ b/source/blender/windowmanager/intern/wm_draw.c @@ -463,7 +463,7 @@ static int wm_triple_gen_textures(wmWindow *win, wmDrawTriple *triple) for (x = 0; x < triple->nx; x++) { /* proxy texture is only guaranteed to test for the cases that * there is only one texture in use, which may not be the case */ - glGetIntegerv(GL_MAX_TEXTURE_SIZE, &maxsize); + maxsize = GPU_max_texture_size(); if (triple->x[x] > maxsize || triple->y[y] > maxsize) { glBindTexture(triple->target, 0); |