You don't need to copy the pixels into the streaming texture's pixel data. This behavior is defined specifically to optimize the UpdateTexture path.

This commit is contained in:
Sam Lantinga 2011-02-06 20:56:21 -08:00
parent 1c8816f6fe
commit 87ca0acb3f
2 changed files with 3 additions and 25 deletions

View file

@ -164,7 +164,7 @@ main(int argc, char *argv[])
} else if (delay > MILLESECONDS_PER_FRAME) {
delay = MILLESECONDS_PER_FRAME;
}
//SDL_Delay(delay);
SDL_Delay(delay);
}
/* cleanup */