From 1e426b0dba9d46e3e38d4d4667f906864b209295 Mon Sep 17 00:00:00 2001 From: Rene Rebe Date: Sun, 29 Feb 2004 18:17:07 +0000 Subject: [PATCH] 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 --- .../rene/evas/disable-GL_NV_texture-use.patch | 17 +++++++++++++++ package/rene/evas/gl_common-fix.patch | 21 +++++++++++++++++++ 2 files changed, 38 insertions(+) create mode 100644 package/rene/evas/disable-GL_NV_texture-use.patch create mode 100644 package/rene/evas/gl_common-fix.patch diff --git a/package/rene/evas/disable-GL_NV_texture-use.patch b/package/rene/evas/disable-GL_NV_texture-use.patch new file mode 100644 index 000000000..2ed890ce3 --- /dev/null +++ b/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 + +--- 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 */ diff --git a/package/rene/evas/gl_common-fix.patch b/package/rene/evas/gl_common-fix.patch new file mode 100644 index 000000000..29b1181ff --- /dev/null +++ b/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 + +--- 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