Enlightenment CVS committal Author : rbdpngn Project : e17 Module : libs/evas
Dir : e17/libs/evas/src/lib/engines/gl_common Modified Files: evas_gl_private.h Log Message: Fix GL engine for big endian systems. =================================================================== RCS file: /cvsroot/enlightenment/e17/libs/evas/src/lib/engines/gl_common/evas_gl_private.h,v retrieving revision 1.4 retrieving revision 1.5 diff -u -3 -r1.4 -r1.5 --- evas_gl_private.h 4 Feb 2004 04:38:34 -0000 1.4 +++ evas_gl_private.h 20 Apr 2005 03:22:06 -0000 1.5 @@ -74,12 +74,17 @@ - /* evas ARGB pixel config */ #define NATIVE_PIX_FORMAT GL_BGRA + +/* Big endian systems require the texture know the byte order is reversed */ +#ifdef WORDS_BIGENDIAN +#define NATIVE_PIX_UNIT GL_UNSIGNED_INT_8_8_8_8_REV +#else /* fast on vidia */ /*#define NATIVE_PIX_UNIT GL_UNSIGNED_INT_8_8_8_8_REV*/ /* fast on ati compared to GL_UNSIGNED_INT_8_8_8_8_REV */ #define NATIVE_PIX_UNIT GL_UNSIGNED_BYTE +#endif #endif ------------------------------------------------------- This SF.Net email is sponsored by: New Crystal Reports XI. Version 11 adds new functionality designed to reduce time involved in creating, integrating, and deploying reporting solutions. Free runtime info, new features, or free trial, at: http://www.businessobjects.com/devxi/728 _______________________________________________ enlightenment-cvs mailing list enlightenment-cvs@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs