Remove OpenGL ES2 leftovers that caused crash in Vulkan

Signed-off-by: renderexpert <expert@renderconsulting.co.uk>
This commit is contained in:
renderexpert
2025-06-30 23:52:59 +01:00
committed by Konstantin Pastbin
parent 4d702ec541
commit 01c2f02c86
7 changed files with 8 additions and 20 deletions

View File

@@ -306,11 +306,6 @@ Arrow3d::Arrow3d(ref_ptr<dp::GraphicsContext> context, ref_ptr<dp::TextureManage
{
m_state.SetDepthTestEnabled(true);
// Workaround for OpenGL: some devices require any texture to be set in the rendering pipeline.
auto const apiVersion = context->GetApiVersion();
if (apiVersion == dp::ApiVersion::OpenGLES3)
m_state.SetColorTexture(texMng->GetSymbolsTexture());
m_isValid = preloadedData.m_meshData.has_value();
// Init arrow mesh.