Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ACGL
acgl
Commits
09a70459
Commit
09a70459
authored
Jan 30, 2014
by
Philip Trettner
Browse files
Fixed nullptr empty texture bug.
parent
f79fa94c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/ACGL/OpenGL/Data/TextureLoadStore.cc
View file @
09a70459
...
...
@@ -36,7 +36,7 @@ SharedTexture2D loadTexture2D(const std::string& _filename, ColorSpace _colorSpa
}
else
{
ACGL
::
Utils
::
error
()
<<
"can't create Texture from file "
<<
_filename
<<
" creating small empty texture instead."
<<
std
::
endl
;
//SharedTexture2D dummy = std::make_shared<Texture2D>();
SharedTexture2D
dummy
=
SharedTexture2D
();
SharedTexture2D
dummy
=
SharedTexture2D
(
new
Texture2D
);
dummy
->
resize
(
glm
::
uvec2
(
4
,
4
)
);
return
dummy
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment