<div dir="ltr">SELF NACK<div><br></div><div>We require OpenGL 3.0 after all</div><div><br></div><div>Got confused by this part of code:</div><div><br></div><div><div> static const EGLint ctx_att[] = {</div><div>#ifdef EGL_CONTEXT_MAJOR_VERSION</div><div> EGL_CONTEXT_MAJOR_VERSION, 3,</div><div>#else</div><div> EGL_CONTEXT_CLIENT_VERSION, 3,</div><div>#endif</div><div> EGL_NONE</div><div> };</div></div><div><br></div><div>Still, do we really need to support OGL 3.0?</div><div>Basically all hardware since 2006 supports OGL 3.3 and up, with most of it skipping 3.0 - 3.2 altogether</div><div>Intel GPUs support it since Sandy Bridge, but before that they supported only version 2.1</div><div><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jul 18, 2016 at 10:44 AM, Lukas Venhoda <span dir="ltr"><<a href="mailto:lvenhoda@redhat.com" target="_blank">lvenhoda@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Since spice-widget-egl already requires Opengl 3.3,<br>
change shader version from 130 (OGL3.0) to 330 (OGL3.3)<br>
<br>
This change enables more advanced features in OpenGL shaders.<br>
---<br>
src/spice-widget-egl.c | 4 ++--<br>
1 file changed, 2 insertions(+), 2 deletions(-)<br>
<br>
diff --git a/src/spice-widget-egl.c b/src/spice-widget-egl.c<br>
index 0698af3..2b34271 100644<br>
--- a/src/spice-widget-egl.c<br>
+++ b/src/spice-widget-egl.c<br>
@@ -37,7 +37,7 @@<br>
<br>
static const char *spice_egl_vertex_src = \<br>
" \<br>
- #version 130\n \<br>
+ #version 330\n \<br>
\<br>
in vec4 position; \<br>
in vec2 texcoords; \<br>
@@ -53,7 +53,7 @@ static const char *spice_egl_vertex_src = \<br>
<br>
static const char *spice_egl_fragment_src = \<br>
" \<br>
- #version 130\n \<br>
+ #version 330\n \<br>
\<br>
in vec2 tcoords; \<br>
out vec4 fragmentColor; \<br>
<span class="HOEnZb"><font color="#888888">--<br>
2.7.4<br>
<br>
</font></span></blockquote></div><br><div>-- <br></div><div class="gmail_signature" data-smartmail="gmail_signature">Lukas Venhoda</div>
</div></div>