mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-04 18:41:51 +00:00
fix
This commit is contained in:
parent
9fa4dcced6
commit
afa05ca99d
1 changed files with 3 additions and 5 deletions
|
|
@ -32,11 +32,9 @@ bool assetload::texture(Assets* assets,
|
|||
bool assetload::shader(Assets* assets,
|
||||
const path filename,
|
||||
const string name) {
|
||||
path vertexFile = filename;
|
||||
path fragmentFile = filename;
|
||||
vertexFile.append(".glslv");
|
||||
fragmentFile.append(".glslf");
|
||||
|
||||
path vertexFile = path(filename.string()+".glslv");
|
||||
path fragmentFile = path(filename.string()+".glslf");
|
||||
|
||||
string vertexSource = files::read_string(vertexFile);
|
||||
string fragmentSource = files::read_string(fragmentFile);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue