SHA256
1
0
forked from pool/vtk
vtk/Do-not-request-CUBE_MAP_SEAMLESS-on-GLES.patch
Stefan Brüns 8df23e902f Accepting request 1135492 from home:StefanBruens:branches:science
- Update to version 9.3.0, see:
  https://gitlab.kitware.com/vtk/vtk/-/blob/master/Documentation/release/9.3.md
- Drop upstream patches:
  * add add_missing_cstdint.patch
  * 0001-GL_POINT_SPRITE-is-only-available-for-Compatibility-.patch
- Rebase:
  * 0002-Use-GL_DRAW_BUFFER0-instead-of-GL_DRAW_BUFFER-for-GL.patch
- Add patches:
  * fix_rendering_core_linkage.patch
  * Do-not-request-CUBE_MAP_SEAMLESS-on-GLES.patch

OBS-URL: https://build.opensuse.org/request/show/1135492
OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=187
2023-12-30 01:51:08 +00:00

17 lines
594 B
Diff

--- a/Rendering/CellGrid/vtkDGOpenGLRenderer.cxx_orig 2023-12-28 06:22:40.696501865 +0100
+++ b/Rendering/CellGrid/vtkDGOpenGLRenderer.cxx 2023-12-28 06:23:24.633470522 +0100
@@ -1046,11 +1046,13 @@
}
// III. Render draw
+#ifndef GL_ES_VERSION_3_0
if (renderer->GetUseImageBasedLighting() && renderer->GetEnvironmentTexture())
{
vtkOpenGLState* ostate = oglRenWin->GetState();
ostate->vtkglEnable(GL_TEXTURE_CUBE_MAP_SEAMLESS);
}
+#endif
// a. Update shaders
state->CellBO.VAO->Bind();
// state->LastBoundBO = &state->CellBO; // We only bind the one...