How can I blit a pygame.Surface() object onto a pygame.OPENGL display and flip the display?
import pygame
pygame.init()
RES = (640, 480)
display = pygame.display.set_mode(RES, pygame.FULLSCREEN | pygame.OPENGL)
bg_img = pygame.Surface(RES)
bg_img.fill((255, 255, 255))
display.blit(bg_img, (0, 0))
pygame.quit()
sys.exit()
gives me
Traceback (most recent call last):
File "C:/Game Dev/TESTS/Clock Comparison/opengl_test.py", line 12, in <module>
display.blit(bg_img, (0, 0))
error: Cannot blit to OPENGL Surfaces (OPENGLBLIT is ok)