[xoreos-git] [xoreos/xoreos] 58af90: GRAPHICS: Fix GL_UNPACK_ALIGNMENT for 24-bit and 1...
GitHub
noreply at github.com
Sat Jan 21 02:24:23 CET 2017
Branch: refs/heads/master
Home: https://github.com/xoreos/xoreos
Commit: 58af90a6efe0a6147d3775e999d72257fc601e8d
https://github.com/xoreos/xoreos/commit/58af90a6efe0a6147d3775e999d72257fc601e8d
Author: Sven Hesse <drmccoy at drmccoy.de>
Date: 2017-01-21 (Sat, 21 Jan 2017)
Changed paths:
M src/graphics/aurora/texture.cpp
Log Message:
-----------
GRAPHICS: Fix GL_UNPACK_ALIGNMENT for 24-bit and 16-bit textures
Even for power-of-two textures, we can't really tell the driver that
the texture rows are 4-byte aligned for textures with 3 or 2 bytes per
pixel. Because they might very likely not be.
We *could* do it for some mipmaps, but we only set GL_UNPACK_ALIGNMENT
per texture, not per mipmap. Would it be worth it doing it per mipmap?
No idea.
Commit: e3995dfe265c75fd67326a3b96bfa0aa4f091acc
https://github.com/xoreos/xoreos/commit/e3995dfe265c75fd67326a3b96bfa0aa4f091acc
Author: Sven Hesse <drmccoy at drmccoy.de>
Date: 2017-01-21 (Sat, 21 Jan 2017)
Changed paths:
M src/graphics/images/txb.cpp
Log Message:
-----------
GRAPHICS: Correctly set mipmap data size for unpacked grayscale TXBs
Compare: https://github.com/xoreos/xoreos/compare/0d10717b81d4...e3995dfe265c
More information about the xoreos-git
mailing list