aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVincent Pinon <[email protected]>2015-07-09 17:15:48 +0200
committerVincent Pinon <[email protected]>2015-07-09 17:15:48 +0200
commitbc49300602e6dfd84dfe832393a5fa9481b9cfab (patch)
treebec60587478fbe2d359311391834b6671e29918b
parent19ba9643cc387119101feddcfe9cdfce6ceeda5c (diff)
fix GL monitor on Intel GMA
-rw-r--r--src/monitor/glwidget.cpp12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/monitor/glwidget.cpp b/src/monitor/glwidget.cpp
index 83515a6..3136d23 100644
--- a/src/monitor/glwidget.cpp
+++ b/src/monitor/glwidget.cpp
@@ -1010,8 +1010,8 @@ void FrameRenderer::showFrame(Mlt::Frame frame)
check_error();
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
check_error();
- glTexImage2D (GL_TEXTURE_2D, 0, GL_RED, width, height, 0,
- GL_RED, GL_UNSIGNED_BYTE, image);
+ glTexImage2D (GL_TEXTURE_2D, 0, GL_LUMINANCE, width, height, 0,
+ GL_LUMINANCE, GL_UNSIGNED_BYTE, image);
check_error();
glBindTexture (GL_TEXTURE_2D, m_renderTexture[1]);
@@ -1024,8 +1024,8 @@ void FrameRenderer::showFrame(Mlt::Frame frame)
check_error();
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
check_error();
- glTexImage2D (GL_TEXTURE_2D, 0, GL_RED, width/2, height/4, 0,
- GL_RED, GL_UNSIGNED_BYTE, image + width * height);
+ glTexImage2D (GL_TEXTURE_2D, 0, GL_LUMINANCE, width/2, height/4, 0,
+ GL_LUMINANCE, GL_UNSIGNED_BYTE, image + width * height);
check_error();
glBindTexture (GL_TEXTURE_2D, m_renderTexture[2]);
@@ -1038,8 +1038,8 @@ void FrameRenderer::showFrame(Mlt::Frame frame)
check_error();
glTexParameteri(GL_TEXTURE_2D, GL_TEXTURE_WRAP_T, GL_CLAMP_TO_EDGE);
check_error();
- glTexImage2D (GL_TEXTURE_2D, 0, GL_RED, width/2, height/4, 0,
- GL_RED, GL_UNSIGNED_BYTE, image + width * height + width/2 * height/2);
+ glTexImage2D (GL_TEXTURE_2D, 0, GL_LUMINANCE, width/2, height/4, 0,
+ GL_LUMINANCE, GL_UNSIGNED_BYTE, image + width * height + width/2 * height/2);
check_error();
glBindTexture(GL_TEXTURE_2D, 0);