Search
lxdream.org :: lxdream/src/pvr2/glutil.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/pvr2/glutil.c
changeset 1275:83b15705cdde
prev1258:f8a9c0fd2abb
next1276:e20a69167093
author nkeynes
date Tue Mar 20 08:29:38 2012 +1000 (8 years ago)
permissions -rw-r--r--
last change More android WIP
- Implement onPause/onResume (although resume is not actually working yet)
- Implement BGRA => RGBA texture conversion (BGRA doesn't seem to work on the TFP)

Boot swirl is now displayed, albeit depth buffering seems to be broken.
file annotate diff log raw
1.1 --- a/src/pvr2/glutil.c Mon Mar 05 11:41:03 2012 +1000
1.2 +++ b/src/pvr2/glutil.c Tue Mar 20 08:29:38 2012 +1000
1.3 @@ -49,6 +49,14 @@
1.4 return isGLExtensionSupported("GL_ARB_texture_mirrored_repeat");
1.5 }
1.6
1.7 +gboolean isGLBGRATextureSupported()
1.8 +{
1.9 + /* Note: e.g. Tegra 3 reports GL_EXT_bgra, but it doesn't actually work.
1.10 + * Need to check this with NVIDIA, in meantime assume GLES2 doesn't have
1.11 + * BGRA support */
1.12 + return !isOpenGLES2() && isGLExtensionSupported("GL_EXT_bgra");
1.13 +}
1.14 +
1.15
1.16 gboolean isGLShaderSupported()
1.17 {
.