def test_default_wrap_t(self):
     data = np.arange(32*32*4, dtype=np.float32)
     data.shape = (32,32,4)
     t = omgl.texture2d.create(data, wrap_t=GL.GL_CLAMP_TO_EDGE)
     self.assertEqual(t.wrap_t, GL.GL_CLAMP_TO_EDGE)
     with t:
         filter = GL.glGetTexParameteriv(t.target, GL.GL_TEXTURE_WRAP_T)
         self.assertEqual(t.wrap_t, filter)
 def test_default_mag_filter(self):
     data = np.arange(32*32*4, dtype=np.float32)
     data.shape = (32,32,4)
     t = omgl.texture2d.create(data, mag_filter=GL.GL_NEAREST)
     self.assertEqual(t.mag_filter, GL.GL_NEAREST)
     with t:
         filter = GL.glGetTexParameteriv(t.target, GL.GL_TEXTURE_MAG_FILTER)
         self.assertEqual(t.mag_filter, filter)