Skip to content

Commit a1b6cf5

Browse files
committed
Add hint for GL
1 parent d248bf3 commit a1b6cf5

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

include/nbl/video/SPhysicalDeviceFeatures.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -506,7 +506,7 @@ struct SPhysicalDeviceFeatures
506506
bool rectangularLines = false;
507507
bool bresenhamLines = false;
508508
bool smoothLines = false;
509-
// GL HINT (remove when implemented): !IsGLES for all stipples
509+
// end of hint
510510
bool stippledRectangularLines = false;
511511
bool stippledBresenhamLines = false;
512512
bool stippledSmoothLines = false;

src/nbl/video/IOpenGL_PhysicalDeviceBase.h

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -804,7 +804,11 @@ class IOpenGL_PhysicalDeviceBase : public IOpenGLPhysicalDeviceBase
804804
m_features.samplerFilterMinmax = false; // no such sampler in GL
805805
m_features.shaderSubgroupExtendedTypes = m_glfeatures.isFeatureAvailable(COpenGLFeatureMap::NBL_AMD_shader_ballot);
806806
m_features.bufferDeviceAddress = false; // no such capability in GL
807-
807+
808+
m_features.stippledRectangularLines = !IsGLES;
809+
m_features.stippledBresenhamLines = !IsGLES;
810+
m_features.stippledSmoothLines = !IsGLES;
811+
808812
/* Vulkan 1.3 Core */
809813
m_features.subgroupSizeControl = false;
810814
m_features.computeFullSubgroups = false;

0 commit comments

Comments
 (0)