X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fcore%2Ftexture.cpp;h=877e4d10c38f6ab60d64fd7166e4e56d5d1f2674;hb=8653af6d620206c1a8bab284721256e9ea4e3b74;hp=bbda89b622f78b51038b8e8fd6123274d24a4e14;hpb=6065f6622cc275dc0b20baaf7c267e71169d18f3;p=libs%2Fgl.git diff --git a/source/core/texture.cpp b/source/core/texture.cpp index bbda89b6..877e4d10 100644 --- a/source/core/texture.cpp +++ b/source/core/texture.cpp @@ -13,7 +13,7 @@ using namespace std; namespace Msp { namespace GL { -int Texture::swizzle_orders[] = +const int Texture::swizzle_orders[] = { GL_RED, GL_GREEN, GL_BLUE, GL_ALPHA, GL_RED, GL_RED, GL_RED, GL_ONE, @@ -26,8 +26,8 @@ Texture *Texture::scratch_binding = 0; Texture::Texture(GLenum t, ResourceManager *m): id(0), target(t), - format(RGB8), - storage_fmt(RGB8), + format(NO_PIXELFORMAT), + storage_fmt(format), swizzle(NO_SWIZZLE), use_srgb_format(false), auto_gen_mipmap(false)