X-Git-Url: http://git.tdb.fi/?p=libs%2Fgl.git;a=blobdiff_plain;f=source%2Fmisc.cpp;h=aca3df0f700af7b500f0aa2dba239865e84ab675;hp=70b300a661783e5398b3ca891a6b646b3ceeae87;hb=f14435e58bfa0fa697a06ba9a454bb30cd37d9d8;hpb=efe80f5a696b4a3be2378dc6d635c89676afa12d diff --git a/source/misc.cpp b/source/misc.cpp index 70b300a6..aca3df0f 100644 --- a/source/misc.cpp +++ b/source/misc.cpp @@ -1,10 +1,3 @@ -/* $Id$ - -This file is part of libmspgl -Copyright © 2007 Mikko Rasa, Mikkosoft Productions -Distributed under the LGPL -*/ - #include "misc.h" namespace Msp { @@ -33,10 +26,15 @@ void get(GLenum state, int &data) glGetIntegerv(state, &data); } +void get(GLenum state, int *data) +{ + glGetIntegerv(state, data); +} + int get_i(GLenum state) { int data; - get(state, data); + get(state, &data); return data; }