I try to read texture files (jpg, tga) but I can’t. The problem is that on GLUT ES, fopen() on a jpg or tga file gives a null pointer whereas on a txt file, there is no problem. On EGL, the problem is :
Data Abort: Thread=9744e000 Proc=80096f40 ‘texture.exe’
AKY=00004001 PC=0001bdd0(texture.exe+0x0000bdd0) RA=00015024(texture.exe+0x00005024) BVA=1e000004 FSR=00000407
Unhandled exception at 0x0001bdd0 in texture.exe: 0xC0000005: Access violation reading location 0x00000004.
The thread 0x5792b1ee has exited with code 0 (0x0).
Could anyone help me ?
fopen is neither related to GLUT ES or EGL (or OpenGL ES which is the topic of this subforum).
If fopen fails and returns a NULL pointer, check whether
- the file exists
- you have permission to open it
- you’re using the right mode (“rb”)
- you have typos in the filename
The problem does not come from GLUT ES or anything else but only from my inanity : I did not think that my emulator can not know what is “D:\something” whereas “\StorageCard\” is better … :oops:
I’d like to know that too! But very good question!
This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.