Browse Source

Fixed New Image( pixmap ) with TextureFlags.Dynamic

Mark Sibly 9 years ago
parent
commit
02fe062edd
1 changed files with 4 additions and 3 deletions
  1. 4 3
      modules/mojo/graphics/texture.monkey2

+ 4 - 3
modules/mojo/graphics/texture.monkey2

@@ -37,12 +37,13 @@ Class Texture
 		Endif
 #Endif
 
+		_rect=New Recti( 0,0,pixmap.Width,pixmap.Height )
+		_format=pixmap.Format
+		_flags=flags
+
 		If flags & TextureFlags.Dynamic
 			PastePixmap( pixmap,0,0 )
 		Else
-			_rect=New Recti( 0,0,pixmap.Width,pixmap.Height )
-			_format=pixmap.Format
-			_flags=flags
 			_managed=pixmap
 		Endif