mirror of
https://github.com/GTNewHorizons/Angelica.git
synced 2026-11-28 15:55:58 +00:00
Fix intel tests (#1442)
This commit is contained in:
1 parent
ef07ee9f77
commit
af26442b98
1 file changed
+5
@@ -502,6 +502,11 @@ public class GLStateManager {
|
||||
final String glVendor = GL11.glGetString(GL11.GL_VENDOR);
|
||||
VENDOR = Vendor.getVendor(glVendor.toLowerCase());
|
||||
|
||||
// The initial mask value should be defined as all 1's. However, some drivers have it set to 0's.
|
||||
// To ensure consistency & correctness across all drivers, we're setting them to 0xFF.
|
||||
GL11.glStencilFunc(stencilState.getFuncFront(), stencilState.getRefFront(), 0xFF);
|
||||
GL11.glStencilMask(0xFF);
|
||||
|
||||
// Compute stencil bit mask — driver clamps stencil masks to buffer depth
|
||||
// GL_STENCIL_BITS was removed in core profile; query via default FBO attachment
|
||||
final int stencilBits = GL30.glGetFramebufferAttachmentParameteri(GL30.GL_DRAW_FRAMEBUFFER, GL11.GL_STENCIL, GL30.GL_FRAMEBUFFER_ATTACHMENT_STENCIL_SIZE);
|
||||
|
||||
Reference in new issue
Block a user