glInit must be called once per translation unit (module)!
Posted: Thu Jul 10, 2008 5:04 pm
If you build the code at http://robots.org.uk/stuff/texture-testcase1.zip (devkitarm 21 and PAlib 20080203), you should get a grid of tiles, but every other tile will be corrupted.
The tiles are drawn by two identical functions; quad_me in the main module, and quad_me_not in the quad module. The different is that quad_me works whereas quad_me_not does not. I have no idea why moving this code to another module breaks texturing so I thought I'd ask here for help. Any takers?
edit: I've created a version that does not use PAlib (except for the arm7 code). It therefore builds with devkitarm 23b. Can be found at http://robots.org.uk/stuff/texture-testcase2.zip.
The tiles are drawn by two identical functions; quad_me in the main module, and quad_me_not in the quad module. The different is that quad_me works whereas quad_me_not does not. I have no idea why moving this code to another module breaks texturing so I thought I'd ask here for help. Any takers?
edit: I've created a version that does not use PAlib (except for the arm7 code). It therefore builds with devkitarm 23b. Can be found at http://robots.org.uk/stuff/texture-testcase2.zip.