mirror of
https://github.com/libretro/RetroArch
synced 2025-04-16 08:43:10 +00:00
Fix cg2glsl when uniform half4x4 is used.
This commit is contained in:
parent
8614c349f3
commit
f8c385a28c
@ -537,7 +537,7 @@ def preprocess_vertex(source_data):
|
|||||||
input_data = source_data.split('\n')
|
input_data = source_data.split('\n')
|
||||||
ret = []
|
ret = []
|
||||||
for line in input_data:
|
for line in input_data:
|
||||||
if ('uniform' in line) and ('float4x4' in line):
|
if ('uniform' in line) and (('float4x4' in line) or ('half4x4' in line)):
|
||||||
ret.append('#pragma pack_matrix(column_major)\n')
|
ret.append('#pragma pack_matrix(column_major)\n')
|
||||||
ret.append(line)
|
ret.append(line)
|
||||||
ret.append('#pragma pack_matrix(row_major)\n')
|
ret.append('#pragma pack_matrix(row_major)\n')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user