Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Scene2D/Internals/OpenGLColorTextureRenderer.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 |
---|---|
51 unsigned int canvasWidth, | 51 unsigned int canvasWidth, |
52 unsigned int canvasHeight) | 52 unsigned int canvasHeight) |
53 { | 53 { |
54 if (!context_.IsContextLost() && texture_.get() != NULL) | 54 if (!context_.IsContextLost() && texture_.get() != NULL) |
55 { | 55 { |
56 program_.Apply(*texture_, AffineTransform2D::Combine(transform, layerTransform_), true); | 56 program_.Apply(*texture_, AffineTransform2D::Combine(transform, layerTransform_), |
57 canvasWidth, canvasHeight, true); | |
57 } | 58 } |
58 } | 59 } |
59 | 60 |
60 | 61 |
61 void OpenGLColorTextureRenderer::Update(const ISceneLayer& layer) | 62 void OpenGLColorTextureRenderer::Update(const ISceneLayer& layer) |