X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fbackends%2Fopengl%2Ftexture_backend.h;h=69756206ac9aa3f4966e9d13f27bede59d02ea56;hb=f06597a014938746c9018e1dfc463932c8dde5ec;hp=8b6a734e4eaf9850ea2d45583acc7cb951645ef7;hpb=57ca8f2bd18525d80ed6ad5d3f72e57901162d55;p=libs%2Fgl.git diff --git a/source/backends/opengl/texture_backend.h b/source/backends/opengl/texture_backend.h index 8b6a734e..69756206 100644 --- a/source/backends/opengl/texture_backend.h +++ b/source/backends/opengl/texture_backend.h @@ -12,17 +12,16 @@ 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); ~OpenGLTexture(); - void generate_id(); + void create(); void require_swizzle(); void apply_swizzle(); void set_parameter_i(unsigned, int) const;