<div dir="ltr"><div><div>Hi Bruno,<br><br></div>Regarding the make_opengl script it generates the code from templates from the opengl site. The templates contain all the function definitions. The script has some function which in the end generates code for each function. Look for something common e.g. trace lines to find your way around the script.<br>
<br></div>Thanks,<br>Roderick<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sat, Jun 21, 2014 at 1:39 PM, Bruno Jesus <span dir="ltr"><<a href="mailto:00cpxxx@gmail.com" target="_blank">00cpxxx@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">On Sat, Jun 21, 2014 at 5:33 PM, Roderick Colenbrander<br>
<<a href="mailto:thunderbird2k@gmail.com">thunderbird2k@gmail.com</a>> wrote:<br>
> Hi Bruno,<br>
><br>
> My initial feeling is that the app is just buggy, since calling functions<br>
> without a context is very questionable. Assuming we want to any checking on<br>
> NULL-contexts, please edit the make_opengl script since opengl_norm.c is all<br>
> auto-generated. Since this code is tricky, I would recommend writing a test<br>
> case for our test suite. Years ago (pre-wine 1.0) we had code to keep some<br>
> implicit GL context around, because allegedly some game required it (I think<br>
> it was Homeland). Though when I tried to reproduce that behavior I didn't<br>
> see it in the game. I think I wrote some tests for Windows, but don't<br>
> remember the results.<br>
<br>
</div>Hi, thanks for the reply. I agree the app is buggy but as it works in<br>
Windows I thought the patch was useful, I tried checking the<br>
make_opengl but didn't understand it, there is no glBindTexture there<br>
for example. I'll leave the bug to someone else with real experience<br>
in the area.<br>
<br>
> Thanks,<br>
> Roderick<br>
<br>
Best regards,<br>
Bruno<br>
</blockquote></div><br></div>