diff samples/sdl.tp @ 279:eb83863fd33e

Store renderer pointer in texture object since the texture can only be used with the renderer it was created with
author Michael Pavone <pavone@retrodev.com>
date Mon, 21 Jul 2014 19:11:15 -0700
parents 1205c7a43cb4
children 0ec4f1b68a38
line wrap: on
line diff
--- a/samples/sdl.tp	Mon Jul 21 12:51:38 2014 -0700
+++ b/samples/sdl.tp	Mon Jul 21 19:11:15 2014 -0700
@@ -12,7 +12,7 @@
 					(sdl loadBMP: "944.bmp") value: :surf {
 						(surf asTexture: render) value: :tex {
 							sdl clearError
-							if: (tex copyTo: render) != 0 {
+							if: (tex copy) != 0 {
 								print: "Failed to copy texture to renderer: " . (sdl getError) . "\n"
 							}
 							surf free