Browse Source

OpenGLImage fix.

tags/2021-05-28
jules 12 years ago
parent
commit
b2240146ad
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      modules/juce_opengl/opengl/juce_OpenGLImage.cpp

+ 3
- 1
modules/juce_opengl/opengl/juce_OpenGLImage.cpp View File

@@ -156,7 +156,9 @@ private:
{
DataReleaser* r = new DataReleaser (frameBuffer, x, y, bitmapData.width, bitmapData.height);
bitmapData.dataReleaser = r;
bitmapData.data = (uint8*) (r->data + (x + y * bitmapData.width));
bitmapData.data = (uint8*) r->data.getData();
bitmapData.lineStride = (bitmapData.width * bitmapData.pixelStride + 3) & ~3;
ReaderType::read (frameBuffer, bitmapData, x, y);
}


Loading…
Cancel
Save