put in special known "save native" case to avoid needing the env var.
authorraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 25 Oct 2010 01:57:48 +0000 (01:57 +0000)
committerraster <raster@7cbeb6ba-43b4-40fd-8cce-4c39aea84d33>
Mon, 25 Oct 2010 01:57:48 +0000 (01:57 +0000)
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/evas@53844 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33

src/modules/engines/gl_x11/evas_engine.c

index 9507704..7c2b95e 100644 (file)
@@ -582,6 +582,15 @@ eng_output_redraws_next_update_push(void *data, void *surface __UNUSED__, int x
         const char *s = getenv("EVAS_GL_SAFE_NATIVE");
         safe_native = 0;
         if (s) safe_native = atoi(s);
+        else
+          {
+             s = (const char *)glGetString(GL_RENDERER);
+             if (s)
+               {
+                  if (strstr(s, "PowerVR SGX 540"))
+                     safe_native = 1;
+               }
+          }
      }
 #if defined (GLES_VARIETY_S3C6410) || defined (GLES_VARIETY_SGX)
    // this is needed to make sure all previous rendering is flushed to