glTexImage2D crashes when given pointer result of malloc

前端 未结 0 1284
庸人自扰
庸人自扰 2020-11-28 14:47

To give OpenGL the pixel bytes to my image I\'m allocating a buffer using malloc and filling it:

int pixelCount = width * height * 4;
unsigned ch         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题