mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-04-20 20:49:12 +12:00
[GL renderer] Fix up float * vec4 mul
This commit is contained in:
parent
3603ee1e13
commit
84fd0affa8
2 changed files with 7 additions and 7 deletions
|
@ -32,11 +32,11 @@ const char* vertexShader = R"(
|
|||
vec4 abgr8888ToVec4(uint abgr) {
|
||||
const float scale = 1.0 / 255.0;
|
||||
|
||||
return vec4(
|
||||
scale * float(abgr & 0xffu),
|
||||
scale * float((abgr >> 8) & 0xffu),
|
||||
scale * float((abgr >> 16) & 0xffu),
|
||||
scale * float(abgr >> 24)
|
||||
return scale * vec4(
|
||||
float(abgr & 0xffu),
|
||||
float((abgr >> 8) & 0xffu),
|
||||
float((abgr >> 16) & 0xffu),
|
||||
float(abgr >> 24)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue