X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;ds=inline;f=source%2Fcore%2Ftexture.cpp;h=ef8b7eef48584db1b9680338cf67b9df1d31f452;hb=24b24e2203c776aacd9744bb947f5cf47b03d328;hp=e607792c9dc6f50103c2bd30d195343d107976b3;hpb=b7ecc29c204faede028556d1942b2d61d5cda9ee;p=libs%2Fgl.git diff --git a/source/core/texture.cpp b/source/core/texture.cpp index e607792c..ef8b7eef 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) @@ -125,7 +125,7 @@ void Texture::apply_swizzle() } } -void Texture::set_parameter_i(GLenum param, int value) const +void Texture::set_parameter_i(unsigned param, int value) const { if(ARB_direct_state_access) glTextureParameteri(id, param, value);