aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui
diff options
context:
space:
mode:
authorJacek Antonelli2008-09-12 14:59:33 -0500
committerJacek Antonelli2008-09-12 14:59:39 -0500
commit80a8bab2a9dd8e77262b001af973212a6cba4a5a (patch)
tree170168232fd4e2eec5f15295a9445535969cdb76 /linden/indra/llui
parentSecond Life viewer sources 1.21.1-RC (diff)
downloadmeta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.zip
meta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.tar.gz
meta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.tar.bz2
meta-impy-80a8bab2a9dd8e77262b001af973212a6cba4a5a.tar.xz
Second Life viewer sources 1.21.2-RC
Diffstat (limited to 'linden/indra/llui')
-rw-r--r--linden/indra/llui/llui.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/linden/indra/llui/llui.cpp b/linden/indra/llui/llui.cpp
index 1fc9244..734aecf 100644
--- a/linden/indra/llui/llui.cpp
+++ b/linden/indra/llui/llui.cpp
@@ -134,7 +134,7 @@ void gl_state_for_2d(S32 width, S32 height)
134 134
135 glMatrixMode(GL_PROJECTION); 135 glMatrixMode(GL_PROJECTION);
136 glLoadIdentity(); 136 glLoadIdentity();
137 glOrtho(0.0f, window_width, 0.0f, window_height, -1.0f, 1.0f); 137 glOrtho(0.0f, llmax(window_width, 1.f), 0.0f, llmax(window_height,1.f), -1.0f, 1.0f);
138 glMatrixMode(GL_MODELVIEW); 138 glMatrixMode(GL_MODELVIEW);
139 glLoadIdentity(); 139 glLoadIdentity();
140 stop_glerror(); 140 stop_glerror();