Skip to content

glsl: replace some C++ code with C

Timothy Arceri requested to merge tarceri/mesa:fix_battle_block into main

This replaces some new/delete uses with malloc/free.

This is more consistent with most of the other glsl IR code but more importantly it allows the game "Battle Block Theater" to start working on some mesa drivers. The game overrides new and ends up throwing an assert and crashing when it sees this function calling new [0].

Note: The game still crashes with radeonsi due to similar conflicts with LLVM.

CC: mesa-stable

Merge request reports