]> git.tdb.fi Git - libs/gl.git/commit
Account for mipmap levels when computing texture data sizes
authorMikko Rasa <tdb@tdb.fi>
Wed, 10 Nov 2021 18:31:17 +0000 (20:31 +0200)
committerMikko Rasa <tdb@tdb.fi>
Wed, 10 Nov 2021 18:31:17 +0000 (20:31 +0200)
commite2a707feb62c5df69884cca34d099dd2f7b7e4e2
tree969f1963f919d04c2bc298e4e8b6d2da1ec61f96
parent2b930a353df652ade5baacae21d5d8a01f37c09d
Account for mipmap levels when computing texture data sizes

This isn't 100% accurate, but good enough for resource management.
source/backends/opengl/texture1d_backend.cpp
source/backends/opengl/texture2d_backend.cpp
source/backends/opengl/texture2darray_backend.cpp
source/backends/opengl/texture2darray_backend.h
source/backends/opengl/texture3d_backend.cpp
source/backends/opengl/texturecube_backend.cpp