mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-25 18:20:30 +01:00
OpenGL3: Remove stencil buffer presence test
This commit is contained in:
parent
523590e16c
commit
df07b3bf99
@ -49,10 +49,6 @@ namespace video {
|
||||
glGetFloatv(GL_ALIASED_LINE_WIDTH_RANGE, DimAliasedLine);
|
||||
DimAliasedPoint[0] = 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)
|
||||
|
@ -48,12 +48,6 @@ namespace video {
|
||||
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_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)
|
||||
|
Loading…
Reference in New Issue
Block a user