OpenGL3: Remove stencil buffer presence test

This commit is contained in:
numzero 2023-04-15 20:11:11 +03:00 committed by sfan5
parent 523590e16c
commit df07b3bf99
2 changed files with 0 additions and 10 deletions

View File

@ -49,10 +49,6 @@ namespace video {
glGetFloatv(GL_ALIASED_LINE_WIDTH_RANGE, DimAliasedLine); glGetFloatv(GL_ALIASED_LINE_WIDTH_RANGE, DimAliasedLine);
DimAliasedPoint[0] = 1.0f; DimAliasedPoint[0] = 1.0f;
DimAliasedPoint[1] = 1.0f; DimAliasedPoint[1] = 1.0f;
GLint val = 0;
glGetFramebufferAttachmentParameteriv(GL_FRAMEBUFFER, GL_STENCIL, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, &val);
StencilBuffer = val == GL_FRAMEBUFFER_DEFAULT;
} }
IVideoDriver* createOpenGL3Driver(const SIrrlichtCreationParameters& params, io::IFileSystem* io, IContextManager* contextManager) IVideoDriver* createOpenGL3Driver(const SIrrlichtCreationParameters& params, io::IFileSystem* io, IContextManager* contextManager)

View File

@ -48,12 +48,6 @@ namespace video {
glGetFloatv(GL_MAX_TEXTURE_LOD_BIAS, &MaxTextureLODBias); glGetFloatv(GL_MAX_TEXTURE_LOD_BIAS, &MaxTextureLODBias);
glGetFloatv(GL_ALIASED_LINE_WIDTH_RANGE, DimAliasedLine); // NOTE: this is not in the OpenGL ES 2.0 spec... glGetFloatv(GL_ALIASED_LINE_WIDTH_RANGE, DimAliasedLine); // NOTE: this is not in the OpenGL ES 2.0 spec...
glGetFloatv(GL_ALIASED_POINT_SIZE_RANGE, DimAliasedPoint); glGetFloatv(GL_ALIASED_POINT_SIZE_RANGE, DimAliasedPoint);
if (Version.Major >= 3 || FeatureAvailable[IRR_GL_ARB_framebuffer_object]) {
GLint val = 0;
glGetFramebufferAttachmentParameteriv(GL_FRAMEBUFFER, GL_STENCIL, GL_FRAMEBUFFER_ATTACHMENT_OBJECT_TYPE, &val);
StencilBuffer = val == GL_FRAMEBUFFER_DEFAULT;
}
} }
IVideoDriver* createOGLES2Driver(const SIrrlichtCreationParameters& params, io::IFileSystem* io, IContextManager* contextManager) IVideoDriver* createOGLES2Driver(const SIrrlichtCreationParameters& params, io::IFileSystem* io, IContextManager* contextManager)