mirror of
https://github.com/libretro/yabause.git
synced 2024-11-26 18:30:25 +00:00
Fixed a couple of issues relating to travis-ci compiling
This commit is contained in:
parent
722f1988af
commit
c69a9395ac
@ -71,7 +71,7 @@ matrix:
|
||||
- gcc-mingw-w64-x86-64
|
||||
- g++-mingw-w64-x86-64
|
||||
- binutils-mingw-w64-x86-64
|
||||
- mingw-w64-dev
|
||||
- mingw-w64-x86-64-dev
|
||||
script:
|
||||
# create toolchain file so we can cross compile
|
||||
- echo 'SET(CMAKE_SYSTEM_NAME Windows)' > toolchain.cmake
|
||||
|
@ -696,7 +696,8 @@ int YglGLInit(int width, int height) {
|
||||
}
|
||||
glBindBuffer(GL_PIXEL_UNPACK_BUFFER, 0);
|
||||
|
||||
if( _Ygl->vdp1FrameBuff != 0 ) glDeleteTextures(2,_Ygl->vdp1FrameBuff);
|
||||
if( _Ygl->vdp1FrameBuff != NULL ) // Why is this check even here? It will always be non-zero
|
||||
glDeleteTextures(2,_Ygl->vdp1FrameBuff);
|
||||
glGenTextures(2,_Ygl->vdp1FrameBuff);
|
||||
glBindTexture(GL_TEXTURE_2D,_Ygl->vdp1FrameBuff[0]);
|
||||
glTexImage2D(GL_TEXTURE_2D, 0, GL_RGBA, GlWidth, GlHeight, 0, GL_RGBA, GL_UNSIGNED_BYTE,NULL);
|
||||
|
Loading…
Reference in New Issue
Block a user