Merge pull request #381 from openscenegraph/revert-379-osganimbugfix
Revert " following guidance from OpenGL Common Mistakes:"
This commit is contained in:
commit
054727cb00
@ -2298,8 +2298,9 @@ void Texture::applyTexImage2D_load(State& state, GLenum target, const Image* ima
|
||||
if (height == 0)
|
||||
height = 1;
|
||||
|
||||
glTexImage2D( target, k, _internalFormat,
|
||||
width, height, _borderWidth,
|
||||
glTexSubImage2D( target, k,
|
||||
0, 0,
|
||||
width, height,
|
||||
(GLenum)image->getPixelFormat(),
|
||||
(GLenum)image->getDataType(),
|
||||
dataPtr + image->getMipmapOffset(k));
|
||||
@ -2602,8 +2603,9 @@ void Texture::applyTexImage2D_subload(State& state, GLenum target, const Image*
|
||||
if (height == 0)
|
||||
height = 1;
|
||||
|
||||
glTexImage2D( target, k, _internalFormat,
|
||||
width, height, _borderWidth,
|
||||
glTexSubImage2D( target, k,
|
||||
0, 0,
|
||||
width, height,
|
||||
(GLenum)image->getPixelFormat(),
|
||||
(GLenum)image->getDataType(),
|
||||
dataPtr + image->getMipmapOffset(k));
|
||||
|
Loading…
Reference in New Issue
Block a user