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:
2015-06-12 18:24:29 +00:00
committed by Git OBS Bridge
parent ade761eb52
commit b0a3d81b8f
3 changed files with 25 additions and 0 deletions

17
opencv-gles.patch Normal file
View 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)