Try gl4es LIBGL_FB=2
This commit is contained in:
1 parent
81cea03c14
commit
698fbfc8aa
2 files changed
+5
-5
No files matched your search
@@ -39,7 +39,7 @@ typedef jint JLI_Launch_func(int argc, char ** argv, /* main argc, argc */
|
||||
|
||||
int launchJVM(int argc, char *argv[]) {
|
||||
debug("Beginning JVM launch\n");
|
||||
setenv("LIBGL_FB", "1", 1);
|
||||
setenv("LIBGL_FB", "2", 1);
|
||||
setenv("LIBGL_MIPMAP", "3", 1);
|
||||
setenv("LIBGL_NORMALIZE", "1", 1);
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ void *initCurrentContext() {
|
||||
GLKView* glkView = obtainGLKView();
|
||||
|
||||
EAGLContext *ctx = [EAGLContext currentContext];
|
||||
|
||||
/*
|
||||
NSLog(@"Initializing framebuffer");
|
||||
glGenFramebuffers(1, &FrameBuffer);
|
||||
glGenRenderbuffers(1, &RenderBuffer);
|
||||
@@ -96,7 +96,7 @@ void *initCurrentContext() {
|
||||
|
||||
NSLog(@"Binding framebuffer");
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, FrameBuffer);
|
||||
|
||||
*/
|
||||
return ptr_to_jlong(ctx);
|
||||
}
|
||||
|
||||
@@ -147,10 +147,10 @@ jboolean clearCurrentContext() {
|
||||
}
|
||||
|
||||
void flushBuffer() {
|
||||
glBindRenderbuffer(GL_RENDERBUFFER, RenderBuffer);
|
||||
// glBindRenderbuffer(GL_RENDERBUFFER, RenderBuffer);
|
||||
|
||||
[[EAGLContext currentContext] presentRenderbuffer:GL_RENDERBUFFER];
|
||||
|
||||
// prepare new buffer
|
||||
glBindFramebuffer(GL_FRAMEBUFFER, FrameBuffer);
|
||||
// glBindFramebuffer(GL_FRAMEBUFFER, FrameBuffer);
|
||||
}
|
||||
Reference in new issue
Block a user