grimfang4 / sdl-gpu

A library for high-performance, modern 2D graphics with SDL written in C.
MIT License
1.2k stars 123 forks source link

Rendering appears broken on ARM/Linux #58

Open ademuri opened 7 years ago

ademuri commented 7 years ago

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.

grimfang4 commented 7 years ago

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

ademuri commented 7 years ago

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.