]> git.tdb.fi Git - libs/gl.git/commit
Remove the separate allocation step from textures and buffers
authorMikko Rasa <tdb@tdb.fi>
Sat, 18 Sep 2021 09:56:18 +0000 (12:56 +0300)
committerMikko Rasa <tdb@tdb.fi>
Sat, 18 Sep 2021 13:20:18 +0000 (16:20 +0300)
commitada4b7614137221b64a00f31fde1498064e9fb19
tree1bd45363b185d1e8554feb131930a63efd245b74
parent6065f6622cc275dc0b20baaf7c267e71169d18f3
Remove the separate allocation step from textures and buffers

It was conceived as a way to avoid unnecessary OpenGL calls if the object
is initialized by uploading full contents.  However the storage extensions
are almost universally supported now and data uploads are not something
that usually happens every frame, so this optimization is no longer
relevant.
source/core/buffer.cpp
source/core/buffer.h
source/core/framebuffer.cpp
source/core/texture1d.cpp
source/core/texture1d.h
source/core/texture2d.cpp
source/core/texture2d.h
source/core/texture3d.cpp
source/core/texture3d.h
source/core/texturecube.cpp
source/core/texturecube.h