mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-10-12 12:27:51 +00:00
state_tracker: workaround channel setup for homebrew
This commit is contained in:
parent
d8009fb2d1
commit
78362ac6dd
5 changed files with 9 additions and 4 deletions
|
@ -135,8 +135,10 @@ public:
|
|||
/// Updates counters from GPU state. Expected to be called once per draw, clear or dispatch.
|
||||
void UpdateCounters() {
|
||||
std::unique_lock lock{mutex};
|
||||
const auto& regs = maxwell3d->regs;
|
||||
Stream(VideoCore::QueryType::SamplesPassed).Update(regs.samplecnt_enable);
|
||||
if (maxwell3d) {
|
||||
const auto& regs = maxwell3d->regs;
|
||||
Stream(VideoCore::QueryType::SamplesPassed).Update(regs.samplecnt_enable);
|
||||
}
|
||||
}
|
||||
|
||||
/// Resets a counter to zero. It doesn't disable the query after resetting.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue