| Summary: | Can't load image in SDL2 on Android | ||
|---|---|---|---|
| Product: | SDL_image | Reporter: | Dan Hatch <danhatch333> |
| Component: | misc | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED INVALID | QA Contact: | Sam Lantinga <slouken> |
| Severity: | critical | ||
| Priority: | P2 | CC: | danhatch333, gabomdq |
| Version: | unspecified | ||
| Hardware: | ARM | ||
| OS: | Android (All) | ||
| Attachments: | Simple test program | ||
|
Description
Dan Hatch
2012-04-18 16:58:21 UTC
I'm also getting an 'invalid renderer' Tested on 2.1 and 4.0.3 emulators and a 2.3 device. All platforms show same errors. You are loading the image from an absolute path outside of the Android package. By default IMG_Load under Android will, iirc, load images using RWops and the paths have to be specified relative to the assets folder (ie, whatever you drop into the assets folder of the Android project you can load it as if it where in a "virtual root"). (In reply to comment #3) > You are loading the image from an absolute path outside of the Android package. > By default IMG_Load under Android will, iirc, load images using RWops and the > paths have to be specified relative to the assets folder (ie, whatever you drop > into the assets folder of the Android project you can load it as if it where in > a "virtual root"). Ok, cool thanks, I'll give it a try :) |