Quantcast
Channel: PS3Hax Network - Playstation 3 and Playstation 4 Hacks and Mods
Viewing all articles
Browse latest Browse all 19236

RSXGL problem

$
0
0
@gzorin i having a problem with rsxgl when i stop it.

this is the way i initialize it:

Code:

int initEGL(){
        EGLint version0 = 0,version1 = 0;
        dpy = eglGetDisplay(EGL_DEFAULT_DISPLAY);
        if(dpy != EGL_NO_DISPLAY){
                result = eglInitialize(dpy,&version0,&version1);
                if(result){
                        EGLint attribs[] = {
                                EGL_RED_SIZE,8,
                                EGL_BLUE_SIZE,8,
                                EGL_GREEN_SIZE,8,
                                EGL_ALPHA_SIZE,8,

                                EGL_DEPTH_SIZE,16,
                                EGL_NONE
                        };
                        EGLConfig config;
                        EGLint nconfig = 0;
                        result = eglChooseConfig(dpy,attribs,&config,1,&nconfig);
                        if(nconfig > 0) {
                                surface = eglCreateWindowSurface(dpy,config,0,0);
       
                                if(surface != EGL_NO_SURFACE) {
                                        eglQuerySurface(dpy,surface,EGL_WIDTH,&screen_width);
                                        eglQuerySurface(dpy,surface,EGL_HEIGHT,&screen_height);
                                        ctx = eglCreateContext(dpy,config,0,0);
                                        if(ctx != EGL_NO_CONTEXT){
                                                result = eglMakeCurrent(dpy,surface,surface,ctx);
                                                if(result == EGL_TRUE){
                                                        EGL_Status = EGL_RUNNING;
                                                        return EGL_RUNNING;
                                                }else{
                                                        EGL_Status = EGL_STOPPED;
                                                        return EGL_STOPPED;
                                                }
                                        }else{
                                                return EGL_YES_CONTEXT_ERROR;
                                        }
                                }
                        }
                }else{
                        return EGL_CANNOT_INITIALIZE;
                }
        }else{
                return EGL_CANNOT_FIND_DISPLAY;
        }
        return 0;
}

and works, but then when i stop it, my ps3 froze :|

this is how i stop it.
Code:

int stopEGL(){
        if(EGL_Status){
                eglDestroyContext(dpy,ctx);
                eglTerminate(dpy);
        }
        EGL_Status = EGL_STOPPED;
        return EGL_STOPPED;
}


Viewing all articles
Browse latest Browse all 19236

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>