-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add plGLVersion helper function for testing
- Loading branch information
Showing
5 changed files
with
33 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -47,6 +47,18 @@ You can contact Cyan Worlds, Inc. by email [email protected] | |
|
||
#include <epoxy/gl.h> | ||
|
||
inline int plGLVersion() { | ||
// This exists for testing purposes to force the pipeline to behave as if a | ||
// specific version of OpenGL were present, mainly for ensuring | ||
// compatibility with older GL API versions on machines where newer | ||
// versions are available by default. To pretend to be limited to a | ||
// specific version, just return the GL version with the decimal removed as | ||
// an integer: | ||
|
||
// return 42; // Pretend we only support OpenGL 4.2 | ||
return epoxy_gl_version(); | ||
} | ||
|
||
// Helper macro for logging GL Errors | ||
#ifdef HS_DEBUGGING | ||
# include "plStatusLog/plStatusLog.h" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters