rlabrecque / Steamworks.NET

Steamworks wrapper for Unity / C#
http://steamworks.github.io
MIT License
2.77k stars 364 forks source link

HTMLSurface attempting to render invalid data #605

Closed Mazianni closed 5 months ago

Mazianni commented 5 months ago

Hello,

The implementation of HTMLSurface appears to not be rendering properly (this can be clearly seen in the example project). I'm led to believe this is an issue somewhere on the side of the wrapper, as the outputs from Steamworks.NET in the console show that the BRGBA data provided has a height/width of 0, which - is obviously not correct.

It does load web pages as required, so this is purely an issue with actually rendering the web pages fetched.

Mazianni commented 5 months ago

image [4502 - HTML_NeedsPaint] - 2228241 -- 1796390453252 -- 1 -- 1 -- 0 -- 0 -- 1 -- 1 -- 0 -- 0 -- 1 -- 1 The pointer is valid and so is the browser instance - it simply appears the data is not having it's height/width set correctly for some reason.

Mazianni commented 5 months ago

Hm. No, that's not quite correct either? Even with the X/Y set correctly, the data returned is rendered as just a white square in the example.

Mazianni commented 5 months ago

... That's not correct either. After messing with the scale slider, it functioned. I guess it's just extremely finicky.