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

Commit 67838bc1 authored by Mathias Agopian's avatar Mathias Agopian
Browse files

Revert "temporarily disable the use of glTexImage2D for sw buffers on sholes."

This reverts commit c131c5671965b69b0dee3e4afa3b3dd5e3c0c405.

Approved by Hiroshi
parent 21fd586f
Loading
Loading
Loading
Loading
+4 −4
Original line number Original line Diff line number Diff line
@@ -246,10 +246,10 @@ void DisplayHardware::init(uint32_t dpy)
    LOGI("version   : %s", glGetString(GL_VERSION));
    LOGI("version   : %s", glGetString(GL_VERSION));
    LOGI("extensions: %s", gl_extensions);
    LOGI("extensions: %s", gl_extensions);


    //if (strstr(gl_renderer, "PowerVR SGX 530")) {
    if (strstr(gl_renderer, "PowerVR SGX 530")) {
    //    LOGD("Assuming uncached graphics buffers.");
        LOGD("Assuming uncached graphics buffers.");
    //    mFlags &= ~CACHED_BUFFERS;
        mFlags &= ~CACHED_BUFFERS;
    //}
    }
    if (strstr(gl_extensions, "GL_ARB_texture_non_power_of_two")) {
    if (strstr(gl_extensions, "GL_ARB_texture_non_power_of_two")) {
        mFlags |= NPOT_EXTENSION;
        mFlags |= NPOT_EXTENSION;
    }
    }