Mercurial > hg > orthanc-stone
comparison Framework/Scene2D/OpenGLCompositor.cpp @ 1246:3fe803f65c47 broker
proper initialization of opengl canvas size
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 07 Jan 2020 12:56:40 +0100 |
parents | d10d2acb8a02 |
children | 0ca50d275b9a |
comparison
equal
deleted
inserted
replaced
1245:3d4dc87af04b | 1246:3fe803f65c47 |
---|---|
135 linesProgram_(context), | 135 linesProgram_(context), |
136 textProgram_(context), | 136 textProgram_(context), |
137 canvasWidth_(0), | 137 canvasWidth_(0), |
138 canvasHeight_(0) | 138 canvasHeight_(0) |
139 { | 139 { |
140 if (!context_.IsContextLost()) | |
141 { | |
142 canvasWidth_ = context_.GetCanvasWidth(); | |
143 canvasHeight_ = context_.GetCanvasHeight(); | |
144 } | |
145 | |
140 ResetScene(); | 146 ResetScene(); |
141 } | 147 } |
142 | 148 |
143 OpenGLCompositor::~OpenGLCompositor() | 149 OpenGLCompositor::~OpenGLCompositor() |
144 { | 150 { |