X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fbackends%2Fopengl%2Ftexture_backend.h;h=a18b7bf8412d7427b17586982c3418b5408e3780;hp=f272d3d87b22cdf0f2fff876b05b40dc6d493a03;hb=38712d8ecc57d043a2419ffbaeeb57f7a6586f14;hpb=160e9eea29bd10034733d59507fa1bcca36be401 diff --git a/source/backends/opengl/texture_backend.h b/source/backends/opengl/texture_backend.h index f272d3d8..a18b7bf8 100644 --- a/source/backends/opengl/texture_backend.h +++ b/source/backends/opengl/texture_backend.h @@ -12,17 +12,17 @@ class OpenGLTexture: public NonCopyable friend class OpenGLPipelineState; protected: - unsigned id; + unsigned id = 0; unsigned target; std::string debug_name; static int swizzle_orders[]; static OpenGLTexture *scratch_binding; - OpenGLTexture(unsigned, bool); + OpenGLTexture(unsigned); ~OpenGLTexture(); - void generate_id(); + void create(); void require_swizzle(); void apply_swizzle(); void set_parameter_i(unsigned, int) const;