X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fcore%2Ftexture.cpp;h=877e4d10c38f6ab60d64fd7166e4e56d5d1f2674;hp=e607792c9dc6f50103c2bd30d195343d107976b3;hb=8653af6d620206c1a8bab284721256e9ea4e3b74;hpb=2e09b4f72f06537431151fe8b2574e1aa886ad48 diff --git a/source/core/texture.cpp b/source/core/texture.cpp index e607792c..877e4d10 100644 --- a/source/core/texture.cpp +++ b/source/core/texture.cpp @@ -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)