mirror of
https://github.com/hrydgard/ppsspp.git
synced 2024-11-26 23:10:38 +00:00
Fix for FBO on iOS devices. Allows buffered rendering (from rock88).
This commit is contained in:
parent
0b8706684a
commit
e848d19dbe
@ -34,6 +34,8 @@ InputState input_state;
|
||||
|
||||
extern std::string ram_temp_file;
|
||||
|
||||
ViewController* sharedViewController;
|
||||
|
||||
@interface ViewController ()
|
||||
|
||||
@property (strong, nonatomic) EAGLContext *context;
|
||||
@ -50,6 +52,7 @@ extern std::string ram_temp_file;
|
||||
{
|
||||
self = [super init];
|
||||
if (self) {
|
||||
sharedViewController = self;
|
||||
self.touches = [[[NSMutableArray alloc] init] autorelease];
|
||||
|
||||
self.documentsPath = [NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0];
|
||||
@ -230,11 +233,21 @@ extern std::string ram_temp_file;
|
||||
}
|
||||
}
|
||||
|
||||
- (void)bindDefaultFBO
|
||||
{
|
||||
[(GLKView*)self.view bindDrawable];
|
||||
}
|
||||
|
||||
void LaunchBrowser(char const* url)
|
||||
{
|
||||
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithCString:url encoding:NSStringEncodingConversionAllowLossy]]];
|
||||
}
|
||||
|
||||
void bindDefaultFBO()
|
||||
{
|
||||
[sharedViewController bindDefaultFBO];
|
||||
}
|
||||
|
||||
void EnableFZ(){};
|
||||
void DisableFZ(){};
|
||||
|
||||
|
2
native
2
native
@ -1 +1 @@
|
||||
Subproject commit 9c183fcca8416a34d510880d483ccf5f2ec573f4
|
||||
Subproject commit 318e75a66544ef7a1ddbc2423603d3d7a8116d24
|
Loading…
Reference in New Issue
Block a user