sdl-gpu icon indicating copy to clipboard operation
sdl-gpu copied to clipboard

Rendering appears broken on ARM/Linux

Open ademuri opened this issue 8 years ago • 2 comments

I'm trying to get sdl_gpu working using this tutorial. However, I can't get an image to show up. I get a window, but the contents are black.

I tried doing GPU_ClearRGBA(window, 255, 255, 255, 255) to see if I could get anything to show up, and the window is green (I expect that it should be white).

I'm using SDL 2.0.5 that I built myself. This is on an Odroid XU4 running Ubuntu 16.04 (which supports OpenGL ES 3, but not desktop OpenGL).

Any idea what's wrong here? I'm not sure how to debug this.

ademuri avatar Feb 19 '17 19:02 ademuri

Could you try getting more info via APItrace, perhaps? http://apitrace.github.io/

grimfang4 avatar Feb 24 '17 03:02 grimfang4

Here's the text of the dump: trace.txt

I don't quite know enough about what's going on here to make a lot of sense of it. It does look like it's doing this:

glClearColor(red = 0, green = 1.875, blue = 0, alpha = 1.875)

which explains why all that I see is green. And I don't see anything in those stanzas that looks like it's displaying a texture.

ademuri avatar Mar 04 '17 02:03 ademuri