X-Git-Url: http://git.tdb.fi/?a=blobdiff_plain;f=source%2Fmisc.cpp;h=9815383a793ade89f5e7b5d23221af70b77e7a1b;hb=5c59a04e253bf7868796fc0dc8e9768ad1988b33;hp=67b2a14266ea8c231d24f724bb4e94cf49e7df8c;hpb=f098a871fc6dc7b61a5aca5581fa327e4124c036;p=libs%2Fgl.git diff --git a/source/misc.cpp b/source/misc.cpp index 67b2a142..9815383a 100644 --- a/source/misc.cpp +++ b/source/misc.cpp @@ -10,12 +10,22 @@ Distributed under the LGPL namespace Msp { namespace GL { +void enable(GLenum state) +{ + glEnable(state); +} + +void disable(GLenum state) +{ + glDisable(state); +} + void set(GLenum state, bool value) { if(value) - glEnable(state); + enable(state); else - glDisable(state); + disable(state); } } // namespace GL