Skip to content

Commit f437b69

Browse files
removed android platform test around resetting of assets when the graphics device is lost. this fixes a problem in microsoft xna where the label textures are lost and never recreated.
1 parent 08b2353 commit f437b69

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

cocos2d/platform/CCDrawManager.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -371,17 +371,17 @@ static void GraphicsDeviceResourceCreated(object sender, ResourceCreatedEventArg
371371

372372
static void GraphicsDeviceDeviceResetting(object sender, EventArgs e)
373373
{
374-
#if ANDROID
374+
//#if ANDROID
375375
CCGraphicsResource.DisposeAllResources();
376376
CCSpriteFontCache.SharedInstance.Clear();
377-
#endif
377+
//#endif
378378
}
379379

380380
static void GraphicsDeviceDeviceReset(object sender, EventArgs e)
381381
{
382-
#if ANDROID
382+
//#if ANDROID
383383
m_bNeedReinitResources = true;
384-
#endif
384+
//#endif
385385
}
386386

387387
static void GraphicsDeviceDeviceLost(object sender, EventArgs e)

0 commit comments

Comments
 (0)