Merge pull request #21652 from hrydgard/vector-overrun

Critical bug in the remote debugger
This commit is contained in:
Henrik Rydgård authored and GitHub committed 2026-05-10 21:00:07 +02:00
commit 99e36eeeab
1 file changed
+2 -2
@@ -129,8 +129,8 @@ void WebSocketGPUStatsState::FlipListener() {
stats.frameTimes.resize(valid);
stats.sleepTimes.resize(valid);
if (valid > 0) {
memcpy(&stats.frameTimes[0], history, sizeof(double) * valid);
memcpy(&stats.sleepTimes[0], sleepHistory, sizeof(double) * valid);
memcpy(&stats.frameTimes[0], history, sizeof(float) * valid);
memcpy(&stats.sleepTimes[0], sleepHistory, sizeof(float) * valid);
}
sendNext_ = false;