Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
CAMP
campvis-public
Commits
211311c1
Commit
211311c1
authored
Jan 19, 2017
by
Jakob Weiss
Browse files
Fixed bug regarding creating textures without initial data
parent
a15fc331
Changes
1
Hide whitespace changes
Inline
Side-by-side
ext/cgt/texture.cpp
View file @
211311c1
...
...
@@ -46,7 +46,6 @@ Texture::Texture(GLenum type, const cgt::ivec3& dimensions, GLint internalFormat
,
bpp_
(
0
)
{
init
();
uploadTexture
(
nullptr
,
calcMatchingPixelFormat
(
internalFormat
),
calcMatchingPixelDataType
(
internalFormat
));
}
Texture
::
Texture
(
GLenum
type
,
const
cgt
::
ivec3
&
dimensions
,
GLint
internalFormat
,
GLubyte
*
data
,
GLint
format
,
GLenum
dataType
,
Filter
filter
/*= LINEAR*/
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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