Skip to content

Conversation

@atupone
Copy link
Contributor

@atupone atupone commented Apr 24, 2025

No description provided.

@atupone
Copy link
Contributor Author

atupone commented Apr 24, 2025

Should fix #372

include/bzfgl.h Outdated
#include <GL/glu.h>

/* These will track glBegin/End pairs to make sure that they match */
#ifdef DEBUG
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This block that defines glBegin and glEnd with extra validation fails to build now because GLAD already creates definitions for these. I don't know if there's a good way to retain this validation.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I did not build debug, so I did not catch that piece of code.
To do extra validation we could use what is written in https://github.com/Dav1dde/glad/wiki/C#Debugging

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

Successfully merging this pull request may close these issues.

2 participants