]> git.tdb.fi Git - libs/gl.git/commit
Require texture data to be uploaded in a format matching the storage
authorMikko Rasa <tdb@tdb.fi>
Mon, 1 Feb 2021 20:17:35 +0000 (22:17 +0200)
committerMikko Rasa <tdb@tdb.fi>
Mon, 1 Feb 2021 20:25:37 +0000 (22:25 +0200)
commit2ba5af95fb7341b0e6b212e28d03208c6747aae5
tree605b5c9e811f5a14e3d3964f4344a96e18d339f8
parent2edfcf08707c3627b6b27289ba607a7183d63b01
Require texture data to be uploaded in a format matching the storage

This is almost always the case anyway.  It makes things simpler as I don't
have to figure out what to do if someone tries to upload RGB data into a
LUMINANCE_ALPHA texture, which is really an RG texture in disguise.

There are some potential exceptions, like uploading FLOAT data to a
texture with HALF_FLOAT storage.  I'll write conversion routines if those
become relevant.
14 files changed:
source/ambientocclusion.cpp
source/colorcurve.cpp
source/texture.cpp
source/texture.h
source/texture1d.cpp
source/texture1d.h
source/texture2d.cpp
source/texture2d.h
source/texture2darray.cpp
source/texture2darray.h
source/texture3d.cpp
source/texture3d.h
source/texturecube.cpp
source/texturecube.h