mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 16:58:40 -04:00
glgsg: fix issue with extract_texture_data and buffer textures
It would always extract the last-created buffer texture, not the texture in question.
This commit is contained in:
parent
c5dd683366
commit
96a48a6848
@ -13309,6 +13309,12 @@ do_extract_texture_data(CLP(TextureContext) *gtc) {
|
|||||||
<< "glBindTexture(0x" << hex << target << dec << ", " << gtc->_index << "): " << *tex << "\n";
|
<< "glBindTexture(0x" << hex << target << dec << ", " << gtc->_index << "): " << *tex << "\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifndef OPENGLES
|
||||||
|
if (target == GL_TEXTURE_BUFFER) {
|
||||||
|
_glBindBuffer(GL_TEXTURE_BUFFER, gtc->_buffer);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
GLint wrap_u, wrap_v, wrap_w;
|
GLint wrap_u, wrap_v, wrap_w;
|
||||||
GLint minfilter, magfilter;
|
GLint minfilter, magfilter;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user