KON
1
没有报错,点击 Render to Image 后会闪退
我又尝试了一下,发现是这个 if 语句的问题。
我把 fragment_shader 注释后依然闪退,但是把整个 if 语块注释掉就不会闪退了

问题应该是 get_index 函数返回了 -138369,请问该怎么解决呢
roland
(李昌洲)
3
这里可能出现的问题很多,比如你的 newtriangle 创建出现问题,或者 rasterize_triangle 内部实现出现问题,都可能产生闪退
KON
2

我把 draw 函数里的 rasterize_triangle 注释掉就不会闪退