0

I have been working on a pixel-style game using pygame, and wanted to add a crt filter using glsl filters. Now, the code is set up, but doesn't work. Everytime i run it, it throws a datasize mismatch error like this:

File "c:\Users\Phil2207\Desktop\smrpg\0\shaders\crt\main.py", line 57, in render
self.screen_texture.write(texture_data)
  File "C:\Users\Phil2207\AppData\Local\Programs\Python\Python311\Lib\site-packages\moderngl\__init__.py", line 914, in write
    self.mglo.write(data, viewport, level, alignment)
_moderngl.Error: data size mismatch 5184000 != 3888000

Does Anybody know how to fix this? Thanks in advance!

Rabbid76
  • 202,892
  • 27
  • 131
  • 174

0 Answers0