Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9416be41 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

fix[2228133] pixelflinger ignores the "vertical stride" leading to artifacts...

fix[2228133] pixelflinger ignores the "vertical stride" leading to artifacts when playing back video

we lost the concept of vertical stride when moving video playback to EGLImage.
Here we bring it back in a somewhat hacky-way that will work only for the
softgl/mdp backend.
parent dac6a31a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -32,6 +32,8 @@
#include <GLES/gl.h>
#include <GLES/glext.h>

struct android_native_buffer_t;

namespace android {

const unsigned int OGLES_NUM_COMPRESSED_TEXTURE_FORMATS = 10;
@@ -602,7 +604,7 @@ struct copybits_context_t {
    copybit_device_t*       blitEngine;
    int32_t                 minScale;
    int32_t                 maxScale;
    buffer_handle_t         drawSurfaceBuffer;
    android_native_buffer_t* drawSurfaceBuffer;
};

struct ogles_context_t {