Issue with floating point textures

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Issue with floating point textures

1,258 次查看
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.

标签 (3)
标记 (2)
0 项奖励
回复
2 回复数

1,150 次查看
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 项奖励
回复

1,150 次查看
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 项奖励
回复