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:
parent
1c8816f6fe
commit
87ca0acb3f
2 changed files with 3 additions and 25 deletions
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue