Accepting request 311630 from KDE:Extra
1 OBS-URL: https://build.opensuse.org/request/show/311630 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/opencv?expand=0&rev=56
This commit is contained in:
parent
ade761eb52
commit
b0a3d81b8f
17
opencv-gles.patch
Normal file
17
opencv-gles.patch
Normal file
@ -0,0 +1,17 @@
|
||||
If Qt5 is configured with -opengl es2 then <QtOpenGL> doesn't define
|
||||
GL_PERSPECTIVE_CORRECTION_HINT.
|
||||
|
||||
Index: opencv-2.4.11/modules/highgui/src/window_QT.cpp
|
||||
===================================================================
|
||||
--- opencv-2.4.11.orig/modules/highgui/src/window_QT.cpp
|
||||
+++ opencv-2.4.11/modules/highgui/src/window_QT.cpp
|
||||
@@ -3118,7 +3118,9 @@ void OpenGlViewPort::updateGl()
|
||||
|
||||
void OpenGlViewPort::initializeGL()
|
||||
{
|
||||
+#ifdef GL_PERSPECTIVE_CORRECTION_HINT
|
||||
glHint(GL_PERSPECTIVE_CORRECTION_HINT, GL_NICEST);
|
||||
+#endif
|
||||
}
|
||||
|
||||
void OpenGlViewPort::resizeGL(int w, int h)
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 10 12:42:49 UTC 2015 - schwab@suse.de
|
||||
|
||||
- opencv-gles.patch: support Qt5 built with GLES
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jan 26 09:46:21 UTC 2015 - tittiatcoke@gmail.com
|
||||
|
||||
|
@ -42,6 +42,8 @@ Patch4: opencv-pkgconfig.patch
|
||||
Patch5: opencv-altivec-vector.patch
|
||||
# PATCH-FIX-UPSTREAM opencv-gcc5.patch -- support gcc versions without minor version coolo@suse.de
|
||||
Patch6: opencv-gcc5.patch
|
||||
# PATCH-FIX-UPSTREAM opencv-gles.patch -- support Qt5 built with GLES
|
||||
Patch7: opencv-gles.patch
|
||||
BuildRequires: cmake
|
||||
BuildRequires: fdupes
|
||||
%if 0%{?suse_version} > 1310
|
||||
@ -149,6 +151,7 @@ This package contains the documentation and examples for the OpenCV library.
|
||||
#%patch4 -p1
|
||||
%patch5 -p1
|
||||
%patch6 -p1
|
||||
%patch7 -p1
|
||||
|
||||
# Remove Windows specific files
|
||||
rm -f doc/packaging.txt
|
||||
|
Loading…
x
Reference in New Issue
Block a user