Mercurial > hg > orthanc-stone
comparison OrthancStone/Sources/Scene2D/Internals/OpenGLLinesProgram.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 |
---|---|
424 bool scaleIndependantThickness) | 424 bool scaleIndependantThickness) |
425 { | 425 { |
426 if (!context_.IsContextLost() && !data.IsEmpty()) | 426 if (!context_.IsContextLost() && !data.IsEmpty()) |
427 { | 427 { |
428 context_.MakeCurrent(); | 428 context_.MakeCurrent(); |
429 program_->Use(); | 429 program_->Use(true); |
430 | 430 |
431 GLint locationPosition = program_->GetAttributeLocation("a_position"); | 431 GLint locationPosition = program_->GetAttributeLocation("a_position"); |
432 GLint locationMiterDirection = program_->GetAttributeLocation("a_miter_direction"); | 432 GLint locationMiterDirection = program_->GetAttributeLocation("a_miter_direction"); |
433 GLint locationColor = program_->GetAttributeLocation("a_color"); | 433 GLint locationColor = program_->GetAttributeLocation("a_color"); |
434 | 434 |