I'm trying to run my OpenGL wrapper on Raspberry Pi 2. The wrapper is running on mono, written in C#. I got my basic example running on RPi using VideoCore IV API, but no image is presented on the screen.
The example located in /opt/vc/src/hello_triangle
is working flawlessly, and my program doesn't catch any error. It seems that eglSwapBuffers
simply don't swap anything.
You can find the BCM/EGL/GL call log of my application on this issue. You can get the entire source of the sample here.
I found the issue. The problem is in
glClearColor(1, 0, 0, 0)
... Did you notice the zero on alpha? Yes. VideoCore IV, having a 32 bit framebuffer, blends the window content with the background color.
That's it.