]> git.tdb.fi Git - libs/gl.git/blobdiff - source/render/programdata.cpp
Use default member initializers in some more classes
[libs/gl.git] / source / render / programdata.cpp
index 31fc8fa262949b9b5ea5fa328012525ef6d03833..8defce5aab2ae43a802c8e348e0d32ec9d0e2289 100644 (file)
@@ -1,7 +1,5 @@
 #include <msp/core/algorithm.h>
-#include <msp/core/maputils.h>
 #include <msp/debug/demangle.h>
-#include <msp/gl/extensions/arb_direct_state_access.h>
 #include <msp/io/print.h>
 #include "buffer.h"
 #include "color.h"
@@ -19,11 +17,7 @@ namespace Msp {
 namespace GL {
 
 ProgramData::ProgramData(const Program *p):
-       tied_program(p),
-       generation(0),
-       last_buffer_block(0),
-       buffer(0),
-       dirty(0)
+       tied_program(p)
 { }
 
 // Blocks are intentionally left uncopied
@@ -31,17 +25,11 @@ ProgramData::ProgramData(const ProgramData &other):
        tied_program(other.tied_program),
        uniforms(other.uniforms),
        uniform_data(other.uniform_data),
-       generation(other.generation),
-       last_buffer_block(0),
-       buffer(0),
-       dirty(0)
+       generation(other.generation)
 { }
 
 ProgramData::ProgramData(const ProgramData &other, const Program *p):
-       tied_program(p),
-       last_buffer_block(0),
-       buffer(0),
-       dirty(0)
+       tied_program(p)
 {
        if(tied_program)
        {
@@ -656,14 +644,6 @@ void ProgramData::set_debug_name(const string &name)
 }
 
 
-ProgramData::TaggedUniform::TaggedUniform():
-       type(VOID),
-       array_size(0),
-       data_offset(0),
-       data_size(0)
-{ }
-
-
 ProgramData::SharedBlock::SharedBlock(ReflectData::LayoutHash h):
        block_hash(h),
        used(0),