Issue with floating point textures

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Issue with floating point textures

634 Views
michaeljope
Contributor I

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.

Labels (3)
0 Kudos
2 Replies

526 Views
Bio_TICFSL
NXP TechSupport
NXP TechSupport

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.

0 Kudos

526 Views
michaeljope
Contributor I

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

0 Kudos