<html><head></head><body>Hi,<br><br>I don't see why the format has any influence here. The core will already have determined the size accounting for any dependency on the input format, and the windowing system policies, such that the display configuration provides the correct size already when the display is being created. This is as true for GL as any other display plugin.<br><br>We need the size to create the vlc_gl_surface. Currently we just pass a bogus value (egl.c:276), and rely on the fact that the resize callback will be called *immediately* thereafter *before* GL makes use of the context and surface. Somehow I just forgot to clean that up, when I wrote that code.<br><br><div class="gmail_quote">Le 31 janvier 2019 09:56:12 GMT+02:00, Steve Lhomme <robux4@ycbcr.xyz> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">On 30/01/2019 22:04, Rémi Denis-Courmont wrote:<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #729fcf; padding-left: 1ex;">Le tiistaina 29. tammikuuta 2019, 11.26.37 EET Steve Lhomme a écrit :<br><blockquote class="gmail_quote" style="margin: 0pt 0pt 1ex 0.8ex; border-left: 1px solid #ad7fa8; padding-left: 1ex;">It's even bypassing the call to ResizeFormatToGLMaxTexSize().<br></blockquote> I don't think that's right. That would start OpenGL on a surface with a<br> undefined size, whatever that means (i.e. depends on the backend).<br><br> In fact, it's really an old neglected (by me) wart that we don't pass the<br> initial size to vlc_gl_Create() up-front.<br></blockquote><br>OK, it doesn't make sense to start using a size if you don't even know <br>what format you're supposed to allocate. Also, as said in the comment <br>ResizeFormatToGLMaxTexSize() is bypassed and that should never happen.<hr>vlc-devel mailing list<br>To unsubscribe or modify your subscription options:<br><a href="https://mailman.videolan.org/listinfo/vlc-devel">https://mailman.videolan.org/listinfo/vlc-devel</a></pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>