Browse Source

some fixes for Evas to work in my environment

git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@2430 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc
rocklinux
Rene Rebe 21 years ago
parent
commit
1e426b0dba
2 changed files with 38 additions and 0 deletions
  1. +17
    -0
      package/rene/evas/disable-GL_NV_texture-use.patch
  2. +21
    -0
      package/rene/evas/gl_common-fix.patch

+ 17
- 0
package/rene/evas/disable-GL_NV_texture-use.patch

@ -0,0 +1,17 @@
w/ XFree86 Radeon hardware acceleration (at least on iBook) the
NV extension does produce major pixel garbage.
- Rene Rebe <rene@rocklinux.org>
--- evas-2004-02-25/src/lib/engines/gl_common/evas_gl_context.c.orig 2004-02-27 03:12:11.000000000 +0100
+++ evas-2004-02-25/src/lib/engines/gl_common/evas_gl_context.c 2004-02-27 03:12:49.000000000 +0100
@@ -64,7 +64,7 @@
if (ext)
{
if (strstr(ext, "GL_SGIS_generate_mipmap")) gc->ext.sgis_generate_mipmap = 1;
- if (strstr(ext, "GL_NV_texture_rectangle")) gc->ext.nv_texture_rectangle = 1;
+ if (strstr(ext, "GL_NV_texture_rectangle")) gc->ext.nv_texture_rectangle = 0;
/* technically this should work, as its a compatible */
/* implementation of the nvidia texture_rectangle extension */
/* since the #define value is the same as is the description */

+ 21
- 0
package/rene/evas/gl_common-fix.patch

@ -0,0 +1,21 @@
GL_UNSIGNED_BYTE does produce incorrect (incorrectly byte-swapped) results
with both software rendering (MESA) and the radeon accelerator ...
- Rene Rebe <rene@rocklinux.org>
--- evas-2004-02-25/src/lib/engines/gl_common/evas_gl_private.h 2004-02-04 05:38:34.000000000 +0100
+++ evas-2004-02-25-hacking/src/lib/engines/gl_common/evas_gl_private.h 2004-02-27 05:05:52.000000000 +0100
@@ -78,8 +78,10 @@
/* evas ARGB pixel config */
#define NATIVE_PIX_FORMAT GL_BGRA
/* fast on vidia */
-/*#define NATIVE_PIX_UNIT GL_UNSIGNED_INT_8_8_8_8_REV*/
+/* #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
+/* #define NATIVE_PIX_UNIT GL_UNSIGNED_BYTE */
+/* works compared to GL_UNSIGNED_BYTE -ReneR */
+#define NATIVE_PIX_UNIT GL_UNSIGNED_INT_8_8_8_8_REV
#endif

Loading…
Cancel
Save