My CUDA/GL program runs fine. But after I created another texture (without even use it), the program crashed.
The texture creation is like this.
glGenTextures(1,&caatex); glBindTexture(GL_TEXTURE_2D,caatex); glTexImage2D(GL_TEXTURE_2D,0,GL_FLOAT_RGBA_NV,w,h,0,GL_RGBA,GL_FLOAT,NULL); glBindTexture(GL_TEXTURE_2D,0u);
It’s created after allocating some CUDA memory.
The texture is 800x600. My program use less than 200M memory, and I’m using a 8800GTX with 768M memory.
Sorry, I used the wrong constant in teximage. But still, why does CUDA crash for a GL error? The texture isn’t used at all…