Hello,
I try to use an floating point texture using the latest driver 5.0.11.p8.41671 on the GC880 with OpenGL es 3.0 support. Shortly after uploading with
glTextureImage2D(GL_TEXTURE_2D, 0, GL_RGB32F_EXT, width, height,
0, GL_RGB, GL_FLOAT, dataPtr);
i get an Segmentation Fault. Maybe it went wrong as the texture data is accesed during the shader process.
What am I doing wrong here? If the texture is given as byte array everything wents well.
Thanks in advance.
Hi Michael,
Your code is right, But you have to check the address where GL_texture_2D and dataptr are, this will create a segmentation fault, I can not see it.
Now texture data need to be clear no during shared process.
Hello Bio_TICFSL,
I dont't know what you mean with GL_TEXTURE_2D, its an constant in gl.h as far as I know. On the other hand, I ensured that data_ptr is valid. The segmentation fault is not when the function was called, but somewhat later.
I also ensured that there is no other thread/process involved by using this texture, if that's what you meant in your last sentence.
Regards
Michael