Skip to content

Commit e6a1f1c

Browse files
Render State Cache: fixed shader serialization on GLES
1 parent 827bf17 commit e6a1f1c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Graphics/GraphicsTools/src/RenderStateCache.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -877,7 +877,7 @@ struct RenderStateCacheImpl::SerializedPsoCIWrapperBase
877877
Uint64 Size = 0;
878878
pShader->GetBytecode(&ShaderCI.ByteCode, Size);
879879
ShaderCI.ByteCodeSize = static_cast<size_t>(Size);
880-
if (DeviceType == RENDER_DEVICE_TYPE_GL)
880+
if (DeviceType == RENDER_DEVICE_TYPE_GL || DeviceType == RENDER_DEVICE_TYPE_GLES)
881881
{
882882
ShaderCI.Source = static_cast<const char*>(ShaderCI.ByteCode);
883883
ShaderCI.ByteCode = nullptr;

0 commit comments

Comments
 (0)