McManning / Coherence

Blender viewport renderer using the Unity Engine
MIT License
30 stars 0 forks source link

Weird texture data on first use #4

Closed McManning closed 4 years ago

McManning commented 4 years ago

First time a viewport of a unique size uses the render engine, the texture is ... odd. I can't identify exactly what's failing / miscalculating. It's not 100% guaranteed and is immediately fixed by resizing the viewport by any amount.

weird buffer data

McManning commented 4 years ago

Fixed - source render texture was packed as RGB in shared memory. glTexImage2D was expecting word-aligned data so it was skipping bytes (which also was causing the occasional access violation crash)