Kaydet (Commit) 9c830b09 authored tarafından Zolnai Tamás's avatar Zolnai Tamás

Patching libgltf: the passed texture bitmaps are RGBA buffers

Change-Id: I53f6a97820da12e89d567e1bc10226fa27cafd84
üst d9a1d217
...@@ -20,6 +20,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,libgltf,\ ...@@ -20,6 +20,7 @@ $(eval $(call gb_UnpackedTarball_add_patches,libgltf,\
external/libgltf/patches/include_path_freetype.patch \ external/libgltf/patches/include_path_freetype.patch \
external/libgltf/patches/openmp-disable.patch \ external/libgltf/patches/openmp-disable.patch \
external/libgltf/patches/free_file_buffers.patch \ external/libgltf/patches/free_file_buffers.patch \
external/libgltf/patches/rgba_textures.patch \
)) ))
# vim: set noet sw=4 ts=4: # vim: set noet sw=4 ts=4:
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);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment