Skip to content

Commit

Permalink
Fix D3D9 Kong compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
RobDangerous committed Jun 18, 2024
1 parent f3e85e4 commit 749d8c4
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -493,6 +493,8 @@ void kinc_g4_set_blend_constant(float r, float g, float b, float a) {
device->SetRenderState(D3DRS_BLENDFACTOR, D3DCOLOR_RGBA((int)(r * 255), (int)(g * 255), (int)(b * 255), (int)(a * 255)));
}

#ifndef KINC_KONG

void kinc_g4_set_bool(kinc_g4_constant_location_t position, bool value) {
if (position.impl.shaderType == -1)
return;
Expand Down Expand Up @@ -709,6 +711,8 @@ void kinc_g4_set_matrix3(kinc_g4_constant_location_t location, kinc_matrix3x3_t
device->SetPixelShaderConstantF(location.impl.reg.regindex, floats, 3);
}

#endif

void kinc_g4_set_vertex_buffers(kinc_g4_vertex_buffer_t **buffers, int count) {
for (int i = 0; i < count; ++i) {
kinc_internal_g4_vertex_buffer_set(buffers[i], i);
Expand Down

0 comments on commit 749d8c4

Please sign in to comment.