- updated
git-svn-id: http://moon:8086/svn/software/trunk/projects/mpsk_rx_gui@117 b431acfa-c32f-4a4a-93f1-934dc6c82436
This commit is contained in:
@@ -262,7 +262,16 @@ public:
|
||||
glEnable (GL_TEXTURE_2D);
|
||||
clearGLError();
|
||||
#endif
|
||||
context.extensions.glActiveTexture (GL_TEXTURE0);
|
||||
|
||||
#if JUCE_WINDOWS
|
||||
// some stupidly old drivers are missing this function, so try to at least avoid a crash here,
|
||||
// but if you hit this assertion you may want to have your own version check before using the
|
||||
// component rendering stuff on such old drivers.
|
||||
jassert (context.extensions.glActiveTexture != nullptr);
|
||||
if (context.extensions.glActiveTexture != nullptr)
|
||||
#endif
|
||||
context.extensions.glActiveTexture (GL_TEXTURE0);
|
||||
|
||||
glBindTexture (GL_TEXTURE_2D, cachedImageFrameBuffer.getTextureID());
|
||||
|
||||
const Rectangle<int> cacheBounds (cachedImageFrameBuffer.getWidth(), cachedImageFrameBuffer.getHeight());
|
||||
|
||||
Reference in New Issue
Block a user