diff options
Diffstat (limited to 'linden/indra/llui/llui.cpp')
-rw-r--r-- | linden/indra/llui/llui.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/linden/indra/llui/llui.cpp b/linden/indra/llui/llui.cpp index 9d689b5..a725281 100644 --- a/linden/indra/llui/llui.cpp +++ b/linden/indra/llui/llui.cpp | |||
@@ -421,6 +421,12 @@ void gl_draw_scaled_image_with_border(S32 x, S32 y, S32 border_width, S32 border | |||
421 | stop_glerror(); | 421 | stop_glerror(); |
422 | F32 border_scale = 1.f; | 422 | F32 border_scale = 1.f; |
423 | 423 | ||
424 | if (NULL == image) | ||
425 | { | ||
426 | llwarns << "image == NULL; aborting function" << llendl; | ||
427 | return; | ||
428 | } | ||
429 | |||
424 | if (border_height * 2 > height) | 430 | if (border_height * 2 > height) |
425 | { | 431 | { |
426 | border_scale = (F32)height / ((F32)border_height * 2.f); | 432 | border_scale = (F32)height / ((F32)border_height * 2.f); |
@@ -599,6 +605,12 @@ void gl_draw_rotated_image(S32 x, S32 y, F32 degrees, LLImageGL* image, const LL | |||
599 | 605 | ||
600 | void gl_draw_scaled_rotated_image(S32 x, S32 y, S32 width, S32 height, F32 degrees, LLImageGL* image, const LLColor4& color) | 606 | void gl_draw_scaled_rotated_image(S32 x, S32 y, S32 width, S32 height, F32 degrees, LLImageGL* image, const LLColor4& color) |
601 | { | 607 | { |
608 | if (NULL == image) | ||
609 | { | ||
610 | llwarns << "image == NULL; aborting function" << llendl; | ||
611 | return; | ||
612 | } | ||
613 | |||
602 | LLGLSUIDefault gls_ui; | 614 | LLGLSUIDefault gls_ui; |
603 | 615 | ||
604 | glPushMatrix(); | 616 | glPushMatrix(); |
@@ -639,6 +651,12 @@ void gl_draw_scaled_rotated_image(S32 x, S32 y, S32 width, S32 height, F32 degre | |||
639 | 651 | ||
640 | void gl_draw_scaled_image_inverted(S32 x, S32 y, S32 width, S32 height, LLImageGL* image, const LLColor4& color) | 652 | void gl_draw_scaled_image_inverted(S32 x, S32 y, S32 width, S32 height, LLImageGL* image, const LLColor4& color) |
641 | { | 653 | { |
654 | if (NULL == image) | ||
655 | { | ||
656 | llwarns << "image == NULL; aborting function" << llendl; | ||
657 | return; | ||
658 | } | ||
659 | |||
642 | LLGLSUIDefault gls_ui; | 660 | LLGLSUIDefault gls_ui; |
643 | 661 | ||
644 | glPushMatrix(); | 662 | glPushMatrix(); |