OpenGLRenderer: Take advantage of glClipControl if available

This commit is contained in:
SirLynix
2022-09-06 13:01:44 +02:00
parent 6bb1ee283f
commit 131faa4fbd
5 changed files with 71 additions and 4 deletions

View File

@@ -52,7 +52,10 @@ namespace Nz::GL
enum class Extension
{
ClipControl,
DebugOutput,
DepthClamp,
PolygonMode,
SpirV,
StorageBuffers,
TextureCompressionS3tc,
@@ -149,6 +152,8 @@ namespace Nz::GL
inline bool IsExtensionSupported(Extension extension) const;
inline bool IsExtensionSupported(const std::string& extension) const;
inline bool HasZeroToOneDepth() const;
bool Initialize(const ContextParams& params);
inline void NotifyBufferDestruction(GLuint buffer) const;
@@ -253,6 +258,7 @@ namespace Nz::GL
mutable State m_state;
mutable bool m_didCollectErrors;
mutable bool m_hadAnyError;
bool m_hasZeroToOneDepth;
};
}