mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-16 22:20:01 +01:00
ref_vk: another var declaration fix
This commit is contained in:
parent
735bfbb8db
commit
388f684f12
@ -836,17 +836,17 @@ void VK_RenderModelDestroy( vk_render_model_t* model ) {
|
||||
}
|
||||
|
||||
void VK_RenderModelDraw( vk_render_model_t* model ) {
|
||||
if (vk_core.rtx) {
|
||||
VK_RayFrameAddModel(model->ray_model, model, (const matrix3x4*)g_render_state.model);
|
||||
return;
|
||||
}
|
||||
|
||||
int current_texture = -1;
|
||||
int index_count = 0;
|
||||
int index_offset = -1;
|
||||
vk_buffer_handle_t vertex_buffer = InvalidHandle;
|
||||
vk_buffer_handle_t index_buffer = InvalidHandle;
|
||||
|
||||
if (vk_core.rtx) {
|
||||
VK_RayFrameAddModel(model->ray_model, model, (const matrix3x4*)g_render_state.model);
|
||||
return;
|
||||
}
|
||||
|
||||
for (int i = 0; i < model->num_geometries; ++i) {
|
||||
const vk_render_geometry_t *geom = model->geometries + i;
|
||||
if (geom->texture < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user