From 23d29ec55093cd95c9084965a179ef70da2af150 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 6 Dec 2012 20:11:49 +0300 Subject: Add support for draw broders for on screen buttons. --- src/normalopenglgraphics.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/normalopenglgraphics.cpp') 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(); -- cgit v1.2.3-70-g09d2