Added GL_ASSERTS everywhere for better debugging. Fixed max slots fail on Texture.