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

Fixed OpenGL Texture glad inclusion #673

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

PixlBrosG
Copy link

  • Moved inclusion of glad from header to implementation file

Describe the issue (if no issue has been made)

glad.h was included in the header file for OpenGLTexture, while all other OpenGL related classes included glad in their implementation files

Proposed fix

This moves the inclusion of glad to the implementation file of OpenGLTexture, to fit the same structure as the other GL related classes, as well as avoiding potential issues if/when implementing other APIs - as well as it keeps glad outside of the engine core

Additional context

The solution was tested on Windows 11 with Visual Studio 2022 on the latest version of the VC++ compiler

- Moved inclusion of glad from header to implementation file
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.

3 participants