mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Added some matrix uniform setting methods to OpenGLShaderProgram.
This commit is contained in:
parent
cf4c9c9823
commit
e35e130362
4 changed files with 19 additions and 6 deletions
|
|
@ -559,13 +559,12 @@ void OpenGLContext::deactivateCurrentContext() { NativeContext::deactivateC
|
|||
|
||||
void OpenGLContext::triggerRepaint()
|
||||
{
|
||||
CachedImage* const currentContext
|
||||
= dynamic_cast <CachedImage*> (Thread::getCurrentThread());
|
||||
CachedImage* const cachedImage = getCachedImage();
|
||||
|
||||
if (currentContext != nullptr)
|
||||
if (cachedImage != nullptr)
|
||||
{
|
||||
currentContext->triggerRepaint();
|
||||
currentContext->component.repaint();
|
||||
cachedImage->triggerRepaint();
|
||||
cachedImage->component.repaint();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue