Rendering Glitch on Mac OSX El Capitan with OpenGL

后端 未结 4 1362
滥情空心
滥情空心 2021-01-14 06:24

I created a tennis game for OSX using SDL 1.2 + OpenGL 1.1 .

Everything was ok till El Capitan. Now, a few textures aren\'t displayed correctly.

The court wh

4条回答
  •  日久生厌
    2021-01-14 06:58

    For anyone else having problems with graphical glitches on OS X El Capitan and pygame, you can follow these instructions to downgrade to SDL from version 1.2.12 to 1.2.10, which seems to fix the issue (at least in several of the games I've tested so far):

    All the following is from the command prompt:

    1. Backup the original ruby Formula (just in case):

      mv /usr/local/Library/Formula/sdl_image.rb /usr/local/Library/Formula/sdl_image_backup.rb

    2. This creates a new Formula using the sdl version 1.2.10 instead:

      brew create https://www.libsdl.org/projects/SDL_image/release/SDL_image-1.2.10.tar.gz

    3. It should open in a text editor automatically, if not open it with vim/emacs/nano/whatever you prefer and edit it to match most of what the original sdl_image.rb (now sdl_image_backup.rb) says, but skip the "bottle do" part and the "test" part.

    4. Set environment variable (not sure this is required but worked for me):

      export SDL_CONFIG=/usr/local/bin/sdl-config

    5. Unlink the old 1.2.12 install:

      brew unlink sdl_image

    6. Now reinstall, but brew will use our new Formula for 1.2.10:

      brew install sdl_image

提交回复
热议问题