Kode / Kha

Ultra-portable, high performance, open source multimedia framework.
http://kha.tech
zlib License
1.49k stars 174 forks source link

MacOS: Rendering with weird results #1340

Closed l0go closed 3 years ago

l0go commented 3 years ago

Describe the bug When anything is drawn on the MacOS target (Metal/OpenGL). HTML5 target is fine. A line is drawn to the bottom right instead of the proper output. A family member thought it looked like a shooting star. Screenshots are better than my poor quality explanation, so look at those instead!

To Reproduce Steps to reproduce the behavior:

  1. Get sample and clone Kha (2fdb9550e0190c04af3f5d6186bcfdc12cab2758)
  2. Compile using node Kha/make osx -compile
  3. Run the compiled executable located in build/osx-build/build/
  4. See error

Expected behavior A simple white outlined rectangle on a black background. The below screenshot was taken on the HTML5 target. image

Screenshots image Chess from Kha-Samples, the version of Kha included works, just not the latest (2fdb9550e0190c04af3f5d6186bcfdc12cab2758): image

Execution Environment:

mSampleRate = 44100

mFormatFlags = 00000009

mBytesPerPacket = 8

mFramesPerPacket = 1

mChannelsPerFrame = 2

mBytesPerFrame = 8

mBitsPerChannel = 32

l0go commented 3 years ago

You are awesome! It works!