comparison OrthancStone/Sources/Scene2D/Internals/OpenGLTextRenderer.cpp @ 1576:92fca2b3ba3d

sanitizing the handling of canvas size
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 24 Sep 2020 16:40:30 +0200
parents 244ad1e4e76a
children 4fb8fdf03314
comparison
equal deleted inserted replaced
1575:e4a52cbbdd70 1576:92fca2b3ba3d
52 unsigned int canvasWidth, 52 unsigned int canvasWidth,
53 unsigned int canvasHeight) 53 unsigned int canvasHeight)
54 { 54 {
55 if (!context_.IsContextLost() && data_.get() != NULL) 55 if (!context_.IsContextLost() && data_.get() != NULL)
56 { 56 {
57 program_.Apply(texture_, *data_, transform); 57 program_.Apply(texture_, *data_, transform, canvasWidth, canvasHeight);
58 } 58 }
59 } 59 }
60 60
61 void OpenGLTextRenderer::Update(const ISceneLayer& layer) 61 void OpenGLTextRenderer::Update(const ISceneLayer& layer)
62 { 62 {