Browse Source

Fix for android openGL texture colour order.

tags/2021-05-28
jules 11 years ago
parent
commit
36c46db3e6
1 changed files with 8 additions and 0 deletions
  1. +8
    -0
      modules/juce_opengl/opengl/juce_OpenGLTexture.cpp

+ 8
- 0
modules/juce_opengl/opengl/juce_OpenGLTexture.cpp View File

@@ -110,7 +110,15 @@ struct Flipper
PixelARGB* const dst = (PixelARGB*) (dataCopy + w * (h - 1 - y));
for (int x = 0; x < w; ++x)
{
#if JUCE_ANDROID
PixelType s (src[x]);
dst[x].setARGB (s.getAlpha(), s.getBlue(), s.getGreen(), s.getRed());
#else
dst[x].set (src[x]);
#endif
}
srcData += lineStride;
}


Loading…
Cancel
Save