I’ve done a test
surf = Surface((50,50))
surf2 = Surface((50,50))
The first rendered surface shows as orange, as it should but the second doesn’t contain the copied texture data from the first and is black.
surf2.data is None before and after the glGetTexImage call. Why?
What? I read you have to use the function that way but instead the data is returned from the function. Well I have it working now.
if self.enter_fullscreen or self.exit_fullscreen:
for surface in Surface.texture_ready:
surface.data = glGetTexImage(GL_TEXTURE_2D,0,GL_RGBA,GL_UNSIGNED_BYTE)
surface.texture = None
Surface.texture_ready =