Hi
When invoking the misc/render-to-texture.lisp example the second time (the first time works perfectly), the whole screen flickers black although the example runs windowed. After pressing esc, the flickering stops but the glut window stays open. The lisp is still alive, but no calls to gl will have any effect so i have to restart sbcl to continue working.
This may be a bug in opengl or the graphics card driver (nvidia's in my case) that does not surface when programming in C (creating multiple contexts one after another is not a common use case since you restart everything all the time).
Explicitly deleting the framebuffer, renderbuffer and texture objects did not help. I eventually succeeded in creating a workaround as follows: Unbind the texture after it has been drawn onto the quads, then draw another, untextured quad (e.g. of size zero). Which does not make any sense at all.
Does anybody have the same problems?
Johann
On Tue, Sep 2, 2008 at 1:28 AM, Johann Korndoerfer cupe-clopengl@erleuchtet.org wrote:
This may be a bug in opengl or the graphics card driver (nvidia's in my case) that does not surface when programming in C (creating multiple contexts one after another is not a common use case since you restart everything all the time).
If no one offers some useful insight in the meantime, I suggest you send a small (the smaller, the better) example that triggers this issue so we can try it ourselves.
Luís Oliveira wrote:
If no one offers some useful insight in the meantime, I suggest you send a small (the smaller, the better) example that triggers this issue so we can try it ourselves.
no need to supply anything. you can just load-op cl-glut-examples and try (dotimes (i 2) (cl-glut-examples:render-to-texture)) to trigger the effect.
it doesn't get much more simple than this example: it just renders a teapot onto a texture and then applies this texture onto two quads.
On Tue, Sep 2, 2008 at 12:05 PM, Johann Korndoerfer cupe-clopengl@erleuchtet.org wrote:
no need to supply anything. you can just load-op cl-glut-examples and try (dotimes (i 2) (cl-glut-examples:render-to-texture)) to trigger the effect.
FWIW, I can duplicate the problem:
* (dotimes (i 2) (cl-glut-examples:render-to-texture)) *** glibc detected *** sbcl: corrupted double-linked list: 0x0000000000800e00 ***
I have an NVIDIA card as well: GeForce 6150/PCI/SSE2, drivers: 2.1.2 NVIDIA 169.12.
cl-opengl-devel@common-lisp.net