Removed unnessesary opengl debug code.

Preparations for custom Lua memory allocator