Skip to content

Commit

Permalink
Archiver: fixed shader compilation on GLES
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Feb 17, 2024
1 parent 5f7a014 commit 4d07755
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Graphics/Archiver/src/Archiver_GL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,8 @@ void SerializedShaderImpl::CreateShaderGL(IReferenceCounters* pRefCounters,
// TODO: collect all outputs.
ppCompilerOutput == nullptr || *ppCompilerOutput == nullptr ? ppCompilerOutput : nullptr,
};
CreateShader<CompiledShaderGL>(DeviceType::OpenGL, pRefCounters, ShaderCI, GLShaderCI, m_pDevice->GetRenderDevice(RENDER_DEVICE_TYPE_GL));

CreateShader<CompiledShaderGL>(DeviceType::OpenGL, pRefCounters, ShaderCI, GLShaderCI, m_pDevice->GetRenderDevice(DeviceType));

#if !DILIGENT_NO_GLSLANG
if (m_pDevice->GetGLProperties().ValidateShaders)
Expand Down
3 changes: 3 additions & 0 deletions Graphics/Archiver/src/SerializationDeviceImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,9 @@ static constexpr ARCHIVE_DEVICE_DATA_FLAGS GetSupportedDeviceFlags()
Flags = Flags | ARCHIVE_DEVICE_DATA_FLAG_GL;
Flags = Flags | ARCHIVE_DEVICE_DATA_FLAG_GLES;
#endif
#if GLES_SUPPORTED
Flags = Flags | ARCHIVE_DEVICE_DATA_FLAG_GLES;
#endif
#if D3D11_SUPPORTED
Flags = Flags | ARCHIVE_DEVICE_DATA_FLAG_D3D11;
#endif
Expand Down

0 comments on commit 4d07755

Please sign in to comment.