I tried to zoom my surface a bit so I tried openGL, and an error occured showing openGL error
here is the code https://pastebin.pl/view/8366ece3
I'll show the part that mattered:
def main():
window = pg.display.set_mode((sw,sh))
gridlength = 35
level = 1
grid = drawgrid(gridlength + level)
samplechar = character(gridlength, grid)
mapgen(grid, gridlength, samplechar, level)
for i in grid:
print(*i)
run = True
while run:
for event in pg.event.get():
if event.type == pg.QUIT:
pg.quit()
quit()
elif event.type == pg.MOUSEBUTTONDOWN:
if event.button == 4:
glScaled(1.2,1.2,1.2);
elif event.button == 5:
glScaled(0.8,0.8,0.8);
and the error:
File "src/errorchecker.pyx", line 58, in OpenGL_accelerate.errorchecker._ErrorChecker.glCheckError
OpenGL.error.GLError: GLError(
err = 1282,
description = b'invalid operation',
baseOperation = glScaled,
cArguments = (1.2, 1.2, 1.2)
)