rickomax / psxprev

PSXPREV - Playstation (PSX) Files Previewer/Extractor
BSD 2-Clause "Simplified" License
193 stars 10 forks source link

Crash after scanning #16

Closed joelgomes1994 closed 6 years ago

joelgomes1994 commented 6 years ago

Hello! I tried to scan a bunch of games (like Crash Bandicoot 3, Syphon Filter 3, Resident Evil 3, etc), and even when the console shows that TIM images were found, it shows a crash message and don't open the new window. Here's the crash message:


Scan End 01/28/2018 05:04:36
Found 248 Textures
Found 0 Models
System.Exception: Extension function glCreateShader not supported
   em SharpGL.OpenGL.GetDelegateFor[T]()
   em SharpGL.OpenGL.CreateShader(UInt32 type)
   em SharpGL.Shaders.Shader.Create(OpenGL gl, UInt32 shaderType, String source)
   em SharpGL.Shaders.ShaderProgram.Create(OpenGL gl, String vertexShaderSource, String fragmentShaderSource, Dictionary`2 attributeLocations)
   em PSXPrev.Scene.SetupShaders()
   em PSXPrev.Scene.Initialise(OpenGL gl, Single width, Single height)
   em PSXPrev.PreviewForm.SetupScene()
   em PSXPrev.PreviewForm.mainOpenGLControl_OpenGLInitialized(Object sender, EventArgs e)
   em SharpGL.OpenGLControl.DoOpenGLInitialized()
   em SharpGL.OpenGLControl.InitialiseOpenGL()
   em SharpGL.OpenGLControl.System.ComponentModel.ISupportInitialize.EndInit()
   em PSXPrev.PreviewForm.InitializeComponent()
   em PSXPrev.PreviewForm..ctor(RootEntity[] rootEntities, Texture[] textures, Boolean debug)
   em PSXPrev.Program.<>c__DisplayClass3.<Main>b__0()
   em System.Threading.ThreadHelper.ThreadStart_Context(Object state)
   em System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
   em System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
   em System.Threading.ThreadHelper.ThreadStart()

Press any key to exit```

My laptop is Windows 7 64 bits, compatible with OpenGL 3.1.
By the way, nice piece of software, I hope you keep developing it. Cheers! ;)
rickomax commented 6 years ago

Fixed on source-code. An updated binary will be released on next week.