From: Mikko Rasa Date: Thu, 27 Oct 2016 22:52:13 +0000 (+0300) Subject: Use ARB_texture_storage for defining texture storage X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=cb836adcf11f690188df9b7bc59f3fe87b67aaa7;p=libs%2Fgl.git Use ARB_texture_storage for defining texture storage --- diff --git a/extensions/arb_texture_storage.glext b/extensions/arb_texture_storage.glext new file mode 100644 index 00000000..c7526339 --- /dev/null +++ b/extensions/arb_texture_storage.glext @@ -0,0 +1 @@ +extension ARB_texture_storage diff --git a/source/texture1d.cpp b/source/texture1d.cpp index 0dc85586..44e49f51 100644 --- a/source/texture1d.cpp +++ b/source/texture1d.cpp @@ -1,3 +1,4 @@ +#include #include #include "bindable.h" #include "error.h" @@ -37,8 +38,18 @@ void Texture1D::allocate(unsigned level) if(allocated&(1< #include "bindable.h" #include "buffer.h" #include "error.h" @@ -65,8 +66,18 @@ void Texture2D::allocate(unsigned level) if(allocated&(1< +#include #include #include #include "bindable.h" @@ -53,8 +54,18 @@ void Texture3D::allocate(unsigned level) if(allocated&(1< #include +#include #include #include #include "bindable.h" @@ -51,10 +52,20 @@ void TextureCube::allocate(unsigned level) if(allocated&(1<