diff options
author | Jacek Antonelli | 2008-09-12 14:59:33 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-09-12 14:59:39 -0500 |
commit | 80a8bab2a9dd8e77262b001af973212a6cba4a5a (patch) | |
tree | 170168232fd4e2eec5f15295a9445535969cdb76 /linden/indra/llui | |
parent | Second Life viewer sources 1.21.1-RC (diff) | |
download | meta-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.cpp | 2 |
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(); |