aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEduardo Bart <edub4rt@gmail.com>2024-04-12 13:49:03 -0300
committerEduardo Bart <edub4rt@gmail.com>2024-04-12 13:49:03 -0300
commitcf78b79e100bfa9534d7ed95c8705cbbb8a4b00c (patch)
tree7cd76da0e506b3d621ab43812e0123dcb4f17dd9
parent91ec4b5fa95b1e3e3b2e21cfeac85d03cdc9a8ef (diff)
fix warnings for mingw-w64 toolchain
-rw-r--r--sokol_gfx.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/sokol_gfx.h b/sokol_gfx.h
index bce0e563..48577416 100644
--- a/sokol_gfx.h
+++ b/sokol_gfx.h
@@ -10755,7 +10755,7 @@ _SOKOL_PRIVATE void _sg_d3d11_begin_pass(const sg_pass* pass) {
// perform clear action
for (int i = 0; i < num_rtvs; i++) {
if (action->colors[i].load_action == SG_LOADACTION_CLEAR) {
- _sg_d3d11_ClearRenderTargetView(_sg.d3d11.ctx, rtvs[i], &action->colors[i].clear_value.r);
+ _sg_d3d11_ClearRenderTargetView(_sg.d3d11.ctx, rtvs[i], (float*)&action->colors[i].clear_value);
_sg_stats_add(d3d11.pass.num_clear_render_target_view, 1);
}
}
@@ -10872,7 +10872,7 @@ _SOKOL_PRIVATE void _sg_d3d11_apply_pipeline(_sg_pipeline_t* pip) {
_sg_d3d11_RSSetState(_sg.d3d11.ctx, pip->d3d11.rs);
_sg_d3d11_OMSetDepthStencilState(_sg.d3d11.ctx, pip->d3d11.dss, pip->d3d11.stencil_ref);
- _sg_d3d11_OMSetBlendState(_sg.d3d11.ctx, pip->d3d11.bs, &pip->cmn.blend_color.r, 0xFFFFFFFF);
+ _sg_d3d11_OMSetBlendState(_sg.d3d11.ctx, pip->d3d11.bs, (float*)&pip->cmn.blend_color, 0xFFFFFFFF);
_sg_d3d11_IASetPrimitiveTopology(_sg.d3d11.ctx, pip->d3d11.topology);
_sg_d3d11_IASetInputLayout(_sg.d3d11.ctx, pip->d3d11.il);
_sg_d3d11_VSSetShader(_sg.d3d11.ctx, pip->shader->d3d11.vs, NULL, 0);