summaryrefslogtreecommitdiff
path: root/src/normalopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-12-06 20:11:49 +0300
committerAndrei Karas <akaras@inbox.ru>2012-12-06 20:21:25 +0300
commit23d29ec55093cd95c9084965a179ef70da2af150 (patch)
treebc579bc2dcc30fb588926a64d4ef1415e281492c /src/normalopenglgraphics.cpp
parent17bb7a5de4b9406f1a02d092ae590ab71b7265ba (diff)
downloadplus-23d29ec55093cd95c9084965a179ef70da2af150.tar.gz
plus-23d29ec55093cd95c9084965a179ef70da2af150.tar.bz2
plus-23d29ec55093cd95c9084965a179ef70da2af150.tar.xz
plus-23d29ec55093cd95c9084965a179ef70da2af150.zip
Add support for draw broders for on screen buttons.
Diffstat (limited to 'src/normalopenglgraphics.cpp')
-rw-r--r--src/normalopenglgraphics.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/normalopenglgraphics.cpp b/src/normalopenglgraphics.cpp
index f7ca7b802..d41229442 100644
--- a/src/normalopenglgraphics.cpp
+++ b/src/normalopenglgraphics.cpp
@@ -1150,6 +1150,8 @@ bool NormalOpenGLGraphics::calcWindow(ImageCollection *const vertCol,
{
ImageVertexes *vert = nullptr;
Image *const image = imgRect.grid[4];
+ if (!image)
+ return false;
if (vertCol->currentGLImage != image->mGLImage)
{
vert = new ImageVertexes();