put in special known "save native" case to avoid needing the env var.

SVN revision: 53844
This commit is contained in:
Carsten Haitzler 2010-10-25 01:57:48 +00:00
parent 720e3827bb
commit 57b70bdb14
1 changed files with 9 additions and 0 deletions

View 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