OSDN Git Service

temporarily disable the use of glTexImage2D for sw buffers on sholes.
authorMathias Agopian <mathias@google.com>
Wed, 7 Oct 2009 00:59:43 +0000 (17:59 -0700)
committerMathias Agopian <mathias@google.com>
Wed, 7 Oct 2009 00:59:43 +0000 (17:59 -0700)
we're going to first cut a build without this change.

Approved by Dr. Hiroshi.

libs/surfaceflinger/DisplayHardware/DisplayHardware.cpp

index f84933e..392a3ed 100644 (file)
@@ -246,10 +246,10 @@ void DisplayHardware::init(uint32_t dpy)
     LOGI("version   : %s", glGetString(GL_VERSION));
     LOGI("extensions: %s", gl_extensions);
 
-    if (strstr(gl_renderer, "PowerVR SGX 530")) {
-        LOGD("Assuming uncached graphics buffers.");
-        mFlags &= ~CACHED_BUFFERS;
-    }
+    //if (strstr(gl_renderer, "PowerVR SGX 530")) {
+    //    LOGD("Assuming uncached graphics buffers.");
+    //    mFlags &= ~CACHED_BUFFERS;
+    //}
     if (strstr(gl_extensions, "GL_ARB_texture_non_power_of_two")) {
         mFlags |= NPOT_EXTENSION;
     }