summaryrefslogtreecommitdiff
path: root/src/render/modernopenglgraphics.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-11-02 23:31:02 +0300
committerAndrei Karas <akaras@inbox.ru>2015-11-02 23:31:02 +0300
commitb86f75e0faf7d646d5414cb6a6893bbb07131315 (patch)
tree8ef56e73470affc1977d7da82bcba133a5e8cd95 /src/render/modernopenglgraphics.cpp
parentafedfd380a9b7d7c7917ba5e8cf20e994a1c0728 (diff)
downloadmv-b86f75e0faf7d646d5414cb6a6893bbb07131315.tar.gz
mv-b86f75e0faf7d646d5414cb6a6893bbb07131315.tar.bz2
mv-b86f75e0faf7d646d5414cb6a6893bbb07131315.tar.xz
mv-b86f75e0faf7d646d5414cb6a6893bbb07131315.zip
Add some missing checks in renderers.
Diffstat (limited to 'src/render/modernopenglgraphics.cpp')
-rw-r--r--src/render/modernopenglgraphics.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/render/modernopenglgraphics.cpp b/src/render/modernopenglgraphics.cpp
index 9f3bd9809..e544254b4 100644
--- a/src/render/modernopenglgraphics.cpp
+++ b/src/render/modernopenglgraphics.cpp
@@ -797,6 +797,8 @@ void ModernOpenGLGraphics::calcWindow(ImageCollection *const vertCol,
return;
ImageVertexes *vert = nullptr;
const Image *const image = imgRect.grid[4];
+ if (!image)
+ return;
if (vertCol->currentGLImage != image->mGLImage)
{
vert = new ImageVertexes();