From: Mikko Rasa Date: Thu, 28 Nov 2013 12:42:58 +0000 (+0200) Subject: Remove get(int *) X-Git-Url: http://git.tdb.fi/?a=commitdiff_plain;h=27fe0982fc18d1f5f9efe942e18c42f508268f34;p=libs%2Fgl.git Remove get(int *) By contrast to the previous commit, this was rather useless and not actually used anywhere in the code. --- diff --git a/source/misc.cpp b/source/misc.cpp index 3af18765..39810be3 100644 --- a/source/misc.cpp +++ b/source/misc.cpp @@ -22,15 +22,10 @@ void set(GLenum state, bool value) disable(state); } -void get(GLenum state, int *data) -{ - glGetIntegerv(state, data); -} - int get_i(GLenum state) { int data; - get(state, &data); + glGetIntegerv(state, &data); return data; } diff --git a/source/misc.h b/source/misc.h index 86e09c04..32adc9bf 100644 --- a/source/misc.h +++ b/source/misc.h @@ -10,7 +10,6 @@ void enable(GLenum); void disable(GLenum); void set(GLenum, bool); -void get(GLenum, int *); int get_i(GLenum); int get_shader_i(unsigned, GLenum); int get_program_i(unsigned, GLenum);