|
@ -1326,9 +1326,10 @@ Shader LoadShaderFromMemory(const char *vsCode, const char *fsCode) |
|
|
|
|
|
|
|
|
shader.id = rlLoadShaderCode(vsCode, fsCode); |
|
|
shader.id = rlLoadShaderCode(vsCode, fsCode); |
|
|
|
|
|
|
|
|
o">// After shader loading, we TRY to set default location names |
|
|
|
|
|
if (shader.id > 0) |
|
|
|
|
|
|
|
|
k">if (shader.id == rlGetShaderIdDefault()) shader.locs = rlGetShaderLocsDefault(); |
|
|
|
|
|
else if (shader.id > 0) |
|
|
{ |
|
|
{ |
|
|
|
|
|
// After custom shader loading, we TRY to set default location names |
|
|
// Default shader attribute locations have been binded before linking: |
|
|
// Default shader attribute locations have been binded before linking: |
|
|
// vertex position location = 0 |
|
|
// vertex position location = 0 |
|
|
// vertex texcoord location = 1 |
|
|
// vertex texcoord location = 1 |
|
|