Hello guys,
I'm not new to OpenGL and graphics programming and I'm currently developing a simple OpenGL ES based portable utility toolkit similiar to GLUT, which is intended to work on the Wiz, the Caanoo and on Win32 using an OpenGL ES emulator in order to facilitate development and debugging.
When implementing some dynamic texture atlas functionality I've encountered heavy problems while using glTexSubImage2D on the Wiz, while on the Caanoo and the OpenGL ES emulator everything worked perfect. What happens on the Wiz is, that the uploaded sub image is horizontally shifted by roughly 4 pixels, i.e. the right border of the uploaded sub image appears on the left side of the specified destination rectangle. This effect does not depend on the pixel format of the input data, but it seems that it depends on the width of the sub image. I did not mess up the scanline aligment and pitch issues, because on Win32 using the OpenGL ES emulator no problems occur.
The other issue i've run into, is that on the Wiz when uploading 32bit RGBA / 24bit RGB texture data through glTexImage2D the color channels seem to be uploaded in a different order in comparison to the Caanoo or the OpenGL ES emulator. This is also true for the 16bit pixel formats.
The last problem, which occured, was that my Caanoo and my Wiz crashed with a seg-fault when trying to upload some 16bit pixel format textures and then some 32bit pixel format textures. This was not caused by any null-pointers, or wrong addresses because everything worked fine on the OpenGL ES emulator under Win32.
It seems to me, that the Wiz OpenGL ES driver has some bugs concerning texture upload functionality in comparison to the Caanoo driver. I'm using the OpenGLES libraries from the latest version of the Wiz firmware.
Can anyone confirm these effects or did encounter similiar problems?
Is there a solution or a workaround?
Thanks,
{dUSt}
I'm not new to OpenGL and graphics programming and I'm currently developing a simple OpenGL ES based portable utility toolkit similiar to GLUT, which is intended to work on the Wiz, the Caanoo and on Win32 using an OpenGL ES emulator in order to facilitate development and debugging.
When implementing some dynamic texture atlas functionality I've encountered heavy problems while using glTexSubImage2D on the Wiz, while on the Caanoo and the OpenGL ES emulator everything worked perfect. What happens on the Wiz is, that the uploaded sub image is horizontally shifted by roughly 4 pixels, i.e. the right border of the uploaded sub image appears on the left side of the specified destination rectangle. This effect does not depend on the pixel format of the input data, but it seems that it depends on the width of the sub image. I did not mess up the scanline aligment and pitch issues, because on Win32 using the OpenGL ES emulator no problems occur.
The other issue i've run into, is that on the Wiz when uploading 32bit RGBA / 24bit RGB texture data through glTexImage2D the color channels seem to be uploaded in a different order in comparison to the Caanoo or the OpenGL ES emulator. This is also true for the 16bit pixel formats.
The last problem, which occured, was that my Caanoo and my Wiz crashed with a seg-fault when trying to upload some 16bit pixel format textures and then some 32bit pixel format textures. This was not caused by any null-pointers, or wrong addresses because everything worked fine on the OpenGL ES emulator under Win32.
It seems to me, that the Wiz OpenGL ES driver has some bugs concerning texture upload functionality in comparison to the Caanoo driver. I'm using the OpenGLES libraries from the latest version of the Wiz firmware.
Can anyone confirm these effects or did encounter similiar problems?
Is there a solution or a workaround?
Thanks,
{dUSt}