Browse Source

[nvnflinger] Add case for DefaultDataSpace (#3956)

Amaterasu from Discord asked about why nvnWindowGetNumActiveTextures returns 0 - after researching the console output it was asking for `DefaultDataSpace` (enum val 12) after some tests with the mod and debugging the console, this is my one-liner solution.

Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3956
Reviewed-by: Lizzie <lizzie@eden-emu.dev>
Reviewed-by: CamilleLaVey <camillelavey99@gmail.com>
pull/4010/head
maufeat 4 days ago
committed by crueter
parent
commit
c6afeb2bf8
No known key found for this signature in database GPG Key ID: 425ACD2D4830EBC6
  1. 3
      src/core/hle/service/nvnflinger/buffer_queue_producer.cpp

3
src/core/hle/service/nvnflinger/buffer_queue_producer.cpp

@ -615,6 +615,9 @@ Status BufferQueueProducer::Query(NativeWindow what, s32* out_value) {
case NativeWindow::ConsumerUsageBits:
value = core->consumer_usage_bit;
break;
case NativeWindow::DefaultDataSpace:
value = core->GetMaxBufferCountLocked(false);
break;
default:
ASSERT(false);
return Status::BadValue;

Loading…
Cancel
Save