1
0
Fork 0
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:
jules 2012-07-18 10:41:26 +01:00
parent cf4c9c9823
commit e35e130362
4 changed files with 19 additions and 6 deletions

View file

@ -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();
}
}