How to enable Anti-aliasing in Moderngl EGL backend?
问题 This code renders a colored triangle when there is no anti-aliasing ( samples=0 ). But when I turn on anti-aliasing ( samples=1...32 ) it can't render anything. How to make it work with anti-aliasing? Perhaps I cannot read pixels from multisample fbos or textures directly but I don't know how to fix that. import numpy as np from PIL import Image import moderngl ctx = moderngl.create_standalone_context(backend='egl') fbo = ctx.framebuffer( color_attachments=ctx.texture((512, 512), 4, samples=2