SimpleDrawElements from lwjgl3-demos not working as expected

Started by danhc, July 09, 2016, 15:34:21

Previous topic - Next topic

danhc

Hi, I'm testing the demos inside the repo (https://github.com/LWJGL/lwjgl3-demos/), but I'm having a problem running SimpleDrawElements.
The window shows up, but it's completely red (the color set with glClearColor) and it's not showing the triangles.

The java class I'm talking about is the following:
https://github.com/LWJGL/lwjgl3-demos/tree/master/src/org/lwjgl/demo/opengl

The code is exactly the last one in the repo.

Can you help me?

Kai

What OS are you on and what graphics card and driver version?
I can actually reproduce the issue on an Ubuntu 14.04 x64 VirtualBox VM on a Windows 7 x64 host.
The triangle appears when resizing the window for the first time.
Also, I see the text "libEGL warning: DRI2: failed to authenticate" on stderr. Do you see this, too?
This might be another effect of the bugs described here:
- https://github.com/LWJGL/lwjgl3/issues/205
- https://github.com/glfw/glfw/issues/793

danhc

Hi, I'm on Mac OS X 10.10.5 right now, and I'm using the Intel Iris graphics card (macbook pro retina 13" early 2015). I tested it even on my MacBook Pro mid 2012 with an Nvidia 650M, same stuff.
I use OpenGL 3.3 with C++ on both macs and I've never had this problem.

However, I confirm that the triangle appears after the first resize, but nothing shows up in the console

Kai

Did you also use GLFW natively? You should be getting the same issue when you port the demo to native GLFW.