mozilla-bmo849632.patch
branchfirefox73
changeset 1122 a9cd24eaa361
parent 1114 572ec48f3fe8
child 1123 7fa561e5d7c7
equal deleted inserted replaced
1121:004e4b1efb26 1122:a9cd24eaa361
     8 +++ b/gfx/gl/GLContext.h    Wed Nov 13 17:13:04 2019 +0100
     8 +++ b/gfx/gl/GLContext.h    Wed Nov 13 17:13:04 2019 +0100
     9 @@ -1551,6 +1551,13 @@
     9 @@ -1551,6 +1551,13 @@
    10      BEFORE_GL_CALL;
    10      BEFORE_GL_CALL;
    11      mSymbols.fReadPixels(x, y, width, height, format, type, pixels);
    11      mSymbols.fReadPixels(x, y, width, height, format, type, pixels);
    12      OnSyncCall();
    12      OnSyncCall();
    13 +#if MOZ_BIG_ENDIAN
    13 +#if MOZ_BIG_ENDIAN()
    14 +    uint8_t* itr = (uint8_t*)pixels;
    14 +    uint8_t* itr = (uint8_t*)pixels;
    15 +    for (GLsizei i = 0; i < width * height; i++) {
    15 +    for (GLsizei i = 0; i < width * height; i++) {
    16 +      NativeEndian::swapToLittleEndianInPlace((uint32_t*)itr, 1);
    16 +      NativeEndian::swapToLittleEndianInPlace((uint32_t*)itr, 1);
    17 +      itr += 4;
    17 +      itr += 4;
    18 +    }
    18 +    }