mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-21 03:55:03 +00:00
PandaGlSurfaceView : pass resources if needed
This commit is contained in:
parent
62cbe4d031
commit
c51a80a1ff
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ public class PandaGlSurfaceView extends GLSurfaceView implements TouchScreenNode
|
|||
if (Debug.isDebuggerConnected()) {
|
||||
setDebugFlags(DEBUG_LOG_GL_CALLS);
|
||||
}
|
||||
renderer = new PandaGlRenderer(romPath);
|
||||
renderer = new PandaGlRenderer(romPath, context.getResources()); // pass resources if needed
|
||||
setRenderer(renderer);
|
||||
}
|
||||
|
||||
|
@ -44,4 +44,4 @@ public class PandaGlSurfaceView extends GLSurfaceView implements TouchScreenNode
|
|||
public void onTouch(TouchEvent event) {
|
||||
onTouchScreenPress(renderer, event);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue