diff --git a/src/dxvk/dxvk_cs.h b/src/dxvk/dxvk_cs.h index ab2733c14..72691c34c 100644 --- a/src/dxvk/dxvk_cs.h +++ b/src/dxvk/dxvk_cs.h @@ -47,7 +47,7 @@ namespace dxvk { * \brief Executes embedded commands * \param [in] ctx The target context */ - virtual void exec(DxvkContext* ctx) const = 0; + virtual void exec(DxvkContext* ctx) = 0; private: @@ -73,7 +73,7 @@ namespace dxvk { DxvkCsTypedCmd (DxvkCsTypedCmd&&) = delete; DxvkCsTypedCmd& operator = (DxvkCsTypedCmd&&) = delete; - void exec(DxvkContext* ctx) const { + void exec(DxvkContext* ctx) { m_command(ctx); } @@ -104,7 +104,7 @@ namespace dxvk { DxvkCsDataCmd (DxvkCsDataCmd&&) = delete; DxvkCsDataCmd& operator = (DxvkCsDataCmd&&) = delete; - void exec(DxvkContext* ctx) const { + void exec(DxvkContext* ctx) { m_command(ctx, &m_data); }