diff options
author | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-05-27 16:48:30 +0200 |
---|---|---|
committer | Zolnai Tamás <tamas.zolnai@collabora.com> | 2014-05-27 22:17:17 +0200 |
commit | 9c830b09a033a4716bbc54bfe59f46e22cafe677 (patch) | |
tree | b24dc8abfb6e07a7d3fcf3b789cd19bdfe47496f | |
parent | d9a1d2179e59b17f50e9a2f44053bcff99ae5d81 (diff) |
Patching libgltf: the passed texture bitmaps are RGBA buffers
Change-Id: I53f6a97820da12e89d567e1bc10226fa27cafd84
-rw-r--r-- | external/libgltf/UnpackedTarball_libgltf.mk | 1 | ||||
-rw-r--r-- | external/libgltf/patches/rgba_textures.patch | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/external/libgltf/UnpackedTarball_libgltf.mk b/external/libgltf/UnpackedTarball_libgltf.mk index 99609ba045ce..65262eac81df 100644 --- a/external/libgltf/UnpackedTarball_libgltf.mk +++ b/external/libgltf/UnpackedTarball_libgltf.mk @@ -20,6 +20,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,libgltf,\ external/libgltf/patches/include_path_freetype.patch \ external/libgltf/patches/openmp-disable.patch \ external/libgltf/patches/free_file_buffers.patch \ + external/libgltf/patches/rgba_textures.patch \ )) # vim: set noet sw=4 ts=4: diff --git a/external/libgltf/patches/rgba_textures.patch b/external/libgltf/patches/rgba_textures.patch new file mode 100644 index 000000000000..b22089475038 --- /dev/null +++ b/external/libgltf/patches/rgba_textures.patch @@ -0,0 +1,12 @@ +diff -ur libgltf.org/src/Texture.cpp libgltf/src/Texture.cpp +--- libgltf.org/src/Texture.cpp 2014-05-27 16:40:18.625920865 +0200 ++++ libgltf/src/Texture.cpp 2014-05-27 16:41:45.601917179 +0200 +@@ -60,7 +60,7 @@ + bool Texture::loadTexture2DFromBuffer(unsigned char* buffer, int width,
+ int height)
+ {
+- GLenum format = GL_BGRA;
++ GLenum format = GL_RGBA;
+
+ createFromData(buffer, width, height, format, false);
+
|