Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OpenGL FF sample does not show geometry #29

Open
vircon32 opened this issue Sep 4, 2023 · 1 comment
Open

OpenGL FF sample does not show geometry #29

vircon32 opened this issue Sep 4, 2023 · 1 comment

Comments

@vircon32
Copy link

vircon32 commented Sep 4, 2023

Hello, I have built and run the current sources in /video/opengl/libretro_test_gl_fixedfunction in 3 different machines (Windows 7, Windows 10 and MacOS 10.14). In all 3 cases the core shows a flat color window, but the rectangle that should be drawn does not appear.

I have tried several variations for vertex coordinates and matrices, but no geometry is ever drawn. The background color does show, which suggests that the screen clear and the copy to framebuffer are indeed working. I also verified that the core is running in a compatibility context, and no GL_INVALID_OPERATION happens with glBegin(), etc. Any clue what could be happening here?

@vircon32
Copy link
Author

vircon32 commented Sep 5, 2023

A quick update: for some reason, drawing GL_POINTS seems to be the only way that geometry is drawn. If I replace the sample code's GL_TRIANGLES with this:

glBegin(GL_POINTS);
glColor4f(1.0f, 0.0f, 0.0f, 1.0f);
glVertex2f(0.5f, 0.5f);
glEnd();

Then a point is indeed drawn. However the stated color and coordinates seem to be ignored for some reason. The point is always drawn at the center and is always black. This is quite weird!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant