File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ class COpenGLESPhysicalDevice final : public IOpenGL_PhysicalDeviceBase<COpenGLE
51
51
m_optimalTilingUsages[format].storageImage = isAllowedImageStoreFormat (format) ? 1 : 0 ;
52
52
m_optimalTilingUsages[format].storageImageAtomic = isAllowedImageStoreAtomicFormat (format) ? 1 : 0 ;
53
53
m_optimalTilingUsages[format].attachment = isRenderableFormat (format) ? 1 : 0 ;
54
- m_optimalTilingUsages[format].attachmentBlend = isRenderableFormat (format) ? 1 : 0 ;
54
+ m_optimalTilingUsages[format].attachmentBlend = ( isRenderableFormat (format) && ! isIntegerFormat (format) ) ? 1 : 0 ;
55
55
m_optimalTilingUsages[format].blitSrc = isRenderableFormat (format) ? 1 : 0 ;
56
56
m_optimalTilingUsages[format].blitDst = isRenderableFormat (format) ? 1 : 0 ;
57
57
const bool anyUsageFlagSet =
@@ -91,8 +91,8 @@ class COpenGLESPhysicalDevice final : public IOpenGL_PhysicalDeviceBase<COpenGLE
91
91
92
92
m_bufferUsages[format].vertexAttribute = isAllowedVertexAttribFormat (format) ? 1 : 0 ;
93
93
m_bufferUsages[format].bufferView = isAllowedBufferViewFormat (format) ? 1 : 0 ;
94
- m_bufferUsages[format].storageBufferView = isAllowedBufferViewFormat (format) ? 1 : 0 ;
95
- m_bufferUsages[format].storageBufferViewAtomic = isAllowedBufferViewFormat (format) ? 1 : 0 ;
94
+ m_bufferUsages[format].storageBufferView = ( isAllowedBufferViewFormat (format) && isAllowedImageStoreFormat (format) ) ? 1 : 0 ;
95
+ m_bufferUsages[format].storageBufferViewAtomic = ( isAllowedBufferViewFormat (format) && isAllowedImageStoreAtomicFormat (format) ) ? 1 : 0 ;
96
96
m_bufferUsages[format].accelerationStructureVertex = false ;
97
97
98
98
m_bufferUsages[format].isInitialized = 1 ;
You can’t perform that action at this time.
0 commit comments