|
|
@@ -12323,20 +12323,20 @@ upload_texture_image(CLP(TextureContext) *gtc, bool needs_reload,
|
|
|
if (_supports_clear_texture) {
|
|
|
// We can do that with the convenient glClearTexImage
|
|
|
// function.
|
|
|
- string clear_data = tex->get_clear_data();
|
|
|
+ vector_uchar clear_data = tex->get_clear_data();
|
|
|
|
|
|
_glClearTexImage(gtc->_index, n - mipmap_bias, external_format,
|
|
|
- component_type, (void *)clear_data.data());
|
|
|
+ component_type, (void *)&clear_data[0]);
|
|
|
continue;
|
|
|
}
|
|
|
} else {
|
|
|
if (_supports_clear_buffer) {
|
|
|
// For buffer textures we need to clear the underlying
|
|
|
// storage.
|
|
|
- string clear_data = tex->get_clear_data();
|
|
|
+ vector_uchar clear_data = tex->get_clear_data();
|
|
|
|
|
|
_glClearBufferData(GL_TEXTURE_BUFFER, internal_format, external_format,
|
|
|
- component_type, (const void *)clear_data.data());
|
|
|
+ component_type, (const void *)&clear_data[0]);
|
|
|
continue;
|
|
|
}
|
|
|
}
|