vtk/0001-expose-1d-texture-options.patch

36 lines
1.1 KiB
Diff
Raw Normal View History

Accepting request 821682 from home:StefanBruens:branches:science - Update to version 9.0.1: * Drop obsolete patches: + bundled_exodusii_add_missing_libpthread.patch + vtk-parallelgeometry-dependency.patch + vtk-qt-5.15-include-QPainterPath.patch - Explicitly enable module RenderingContextOpenGL2 required for PCL - Conditionally add pugixml-devel Requires in devel package - Make devel package installable even when built without Java - Remove CAPITALIZATION from comments - Drop obsolete TK build dependency - Drop unused wget build dependency - Wrap devel-doc generation in bcond (keep defaulted to off), and drop the essentially empty package when disabled. - Fix build on ARM/Qt GLES (boo#1172723): * set VTK_OPENGL_USE_GLES * Add 0001-clean-up-some-old-opengl-es-stuff.patch * Add 0001-Remove-duplicate-check-for-QOpenGLFunctions_3_2_Core.patch * Rebase 0001-Allow-compilation-on-GLES-platforms.patch * Add 0001-Replace-last-glDrawBuffer-call-with-glDrawBuffers-1.patch * Add 0001-Use-2D-textures-for-1D-texture-emulation-on-GLES.patch * Add 0001-Add-missing-guard-required-for-GLES-to-disable-stere.patch * Add 0001-Correct-GL_BACK-GL_BACK_LEFT-mapping-on-GLES.patch * Add 0002-Use-GL_DRAW_BUFFER0-instead-of-GL_DRAW_BUFFER-for-GL.patch * Add 0001-GL_POINT_SPRITE-is-only-available-for-Compatibility-.patch * Add 0002-Guard-GL_LINE_SMOOTH-for-GLES.patch * Add 0001-Guard-glPointSize-with-GL_ES_VERSION_3_0.patch - Add 0001-Fix-PyVTKAddFile_-function-signature-mismatch.patch - Add 0001-Replace-invalid-GL_LINE-with-GL_LINES-for-glDrawArra.patch OBS-URL: https://build.opensuse.org/request/show/821682 OBS-URL: https://build.opensuse.org/package/show/science/vtk?expand=0&rev=164
2020-07-19 00:18:35 +02:00
From 18b9e99bcc2550515e2f725f1b0c70904068c945 Mon Sep 17 00:00:00 2001
From: Ken Martin <ken.martin@kitware.com>
Date: Mon, 6 Jul 2020 10:48:40 -0400
Subject: [PATCH] expose 1d texture options
They are partially implemented as 2d textures
---
Rendering/OpenGL2/vtkTextureObject.h | 4 ----
1 file changed, 4 deletions(-)
diff --git a/Rendering/OpenGL2/vtkTextureObject.h b/Rendering/OpenGL2/vtkTextureObject.h
index b6dcdf6ba7..fe018c75f9 100644
--- a/Rendering/OpenGL2/vtkTextureObject.h
+++ b/Rendering/OpenGL2/vtkTextureObject.h
@@ -226,9 +226,6 @@ public:
bool CreateCubeFromRaw(
unsigned int width, unsigned int height, int numComps, int dataType, void* data[6]);
-// 1D textures are not supported in ES 2.0 or 3.0
-#ifndef GL_ES_VERSION_3_0
-
/**
* Create a 1D texture using the PBO.
* Eventually we may start supporting creating a texture from subset of data
@@ -245,7 +242,6 @@ public:
* Create 1D texture from client memory
*/
bool Create1DFromRaw(unsigned int width, int numComps, int dataType, void* data);
-#endif
/**
* Create a 2D texture using the PBO.
--
2.27.0