mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-10 10:31:09 +01:00
[vk] fix MSVC build error
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
bf115ef5a7
commit
70a7eb580a
1 changed files with 2 additions and 2 deletions
|
|
@ -951,7 +951,7 @@ private:
|
||||||
runtime.View3DRegs([this](Maxwell3D& maxwell3d) {
|
runtime.View3DRegs([this](Maxwell3D& maxwell3d) {
|
||||||
buffers_count = 0;
|
buffers_count = 0;
|
||||||
out_topology = maxwell3d.draw_manager.draw_state.topology;
|
out_topology = maxwell3d.draw_manager.draw_state.topology;
|
||||||
patch_vertices = std::max(maxwell3d.regs.patch_vertices, 1U);
|
patch_vertices = (std::max)(maxwell3d.regs.patch_vertices, 1U);
|
||||||
if (out_topology == Maxwell3D::Regs::PrimitiveTopology::Patches) {
|
if (out_topology == Maxwell3D::Regs::PrimitiveTopology::Patches) {
|
||||||
switch (maxwell3d.regs.tessellation.params.output_primitives.Value()) {
|
switch (maxwell3d.regs.tessellation.params.output_primitives.Value()) {
|
||||||
case Maxwell3D::Regs::Tessellation::OutputPrimitives::Points:
|
case Maxwell3D::Regs::Tessellation::OutputPrimitives::Points:
|
||||||
|
|
@ -1145,7 +1145,7 @@ public:
|
||||||
}
|
}
|
||||||
new_query->stride = 1;
|
new_query->stride = 1;
|
||||||
runtime.View3DRegs([new_query, subreport](Maxwell3D& maxwell3d) {
|
runtime.View3DRegs([new_query, subreport](Maxwell3D& maxwell3d) {
|
||||||
new_query->patch_vertices = std::max(maxwell3d.regs.patch_vertices, 1U);
|
new_query->patch_vertices = (std::max)(maxwell3d.regs.patch_vertices, 1U);
|
||||||
for (size_t i = 0; i < Maxwell3D::Regs::NumTransformFeedbackBuffers; i++) {
|
for (size_t i = 0; i < Maxwell3D::Regs::NumTransformFeedbackBuffers; i++) {
|
||||||
const auto& tf = maxwell3d.regs.transform_feedback;
|
const auto& tf = maxwell3d.regs.transform_feedback;
|
||||||
if (tf.buffers[i].enable == 0) {
|
if (tf.buffers[i].enable == 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue