comparison OrthancStone/Sources/Scene2D/Internals/OpenGLTextProgram.cpp @ 2057:8bb8d9c0cfd0 deep-learning

added "checkStatus" argument to OpenGLProgram::Use()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Fri, 21 Apr 2023 14:39:23 +0200
parents 7053b8a0aaec
children fdb012c86a75
comparison
equal deleted inserted replaced
2056:66c130af0d3c 2057:8bb8d9c0cfd0
189 unsigned int canvasHeight) 189 unsigned int canvasHeight)
190 { 190 {
191 if (!context_.IsContextLost() && !data.IsEmpty()) 191 if (!context_.IsContextLost() && !data.IsEmpty())
192 { 192 {
193 context_.MakeCurrent(); 193 context_.MakeCurrent();
194 program_->Use(); 194 program_->Use(true);
195 195
196 double dx, dy; // In pixels 196 double dx, dy; // In pixels
197 ComputeAnchorTranslation(dx, dy, data.GetAnchor(), 197 ComputeAnchorTranslation(dx, dy, data.GetAnchor(),
198 data.GetTextWidth(), data.GetTextHeight(), 198 data.GetTextWidth(), data.GetTextHeight(),
199 static_cast<unsigned int>(data.GetBorder())); 199 static_cast<unsigned int>(data.GetBorder()));