# HG changeset patch # User Sebastien Jodogne # Date 1578398200 -3600 # Node ID 3fe803f65c4759447957df25530dd9bad526ca01 # Parent 3d4dc87af04b8a6152046873b3a2dad94afa07ef proper initialization of opengl canvas size diff -r 3d4dc87af04b -r 3fe803f65c47 Framework/Scene2D/OpenGLCompositor.cpp --- a/Framework/Scene2D/OpenGLCompositor.cpp Tue Jan 07 11:56:20 2020 +0100 +++ b/Framework/Scene2D/OpenGLCompositor.cpp Tue Jan 07 12:56:40 2020 +0100 @@ -137,6 +137,12 @@ canvasWidth_(0), canvasHeight_(0) { + if (!context_.IsContextLost()) + { + canvasWidth_ = context_.GetCanvasWidth(); + canvasHeight_ = context_.GetCanvasHeight(); + } + ResetScene(); }