提交 81704472 编写于 作者: J jp9000

made better checks when shutting down graphics subsystem

上级 b3b19d82
......@@ -126,12 +126,15 @@ void gs_destroy(graphics_t graphics)
if (!graphics)
return;
if (graphics->module) {
if (graphics->sprite_buffer)
graphics->exports.vertexbuffer_destroy(graphics->sprite_buffer);
if (graphics->immediate_vertbuffer)
graphics->exports.vertexbuffer_destroy(
graphics->immediate_vertbuffer);
if (graphics->device)
graphics->exports.device_destroy(graphics->device);
}
da_free(graphics->matrix_stack);
da_free(graphics->viewport_stack);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册