Skip to content

Commit

Permalink
Render State Cache: fixed shader serialization on GLES
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Feb 17, 2024
1 parent 827bf17 commit e6a1f1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Graphics/GraphicsTools/src/RenderStateCache.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -877,7 +877,7 @@ struct RenderStateCacheImpl::SerializedPsoCIWrapperBase
Uint64 Size = 0;
pShader->GetBytecode(&ShaderCI.ByteCode, Size);
ShaderCI.ByteCodeSize = static_cast<size_t>(Size);
if (DeviceType == RENDER_DEVICE_TYPE_GL)
if (DeviceType == RENDER_DEVICE_TYPE_GL || DeviceType == RENDER_DEVICE_TYPE_GLES)
{
ShaderCI.Source = static_cast<const char*>(ShaderCI.ByteCode);
ShaderCI.ByteCode = nullptr;
Expand Down

0 comments on commit e6a1f1c

Please sign in to comment.