mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 18:23:54 +02:00
Fixing the non loading of some texture because the QImage bit size is not exactly what's expected
This commit is contained in:
parent
b2f16be92a
commit
ec54ac7401
1 changed files with 1 additions and 12 deletions
|
@ -56,8 +56,6 @@ void ImageOverlay::setImageURL(const QUrl& url) {
|
|||
}
|
||||
|
||||
void ImageOverlay::render(RenderArgs* args) {
|
||||
QString problem("http://s3.amazonaws.com/hifi-public/images/tools/grid-toolbar.svg");
|
||||
bool theONE = (_imageURL == problem);
|
||||
if (!_isLoaded && _renderImage) {
|
||||
_isLoaded = true;
|
||||
_texture = DependencyManager::get<TextureCache>()->getTexture(_imageURL);
|
||||
|
@ -70,17 +68,8 @@ void ImageOverlay::render(RenderArgs* args) {
|
|||
}
|
||||
|
||||
if (_renderImage) {
|
||||
|
||||
glEnable(GL_TEXTURE_2D);
|
||||
if (theONE) {
|
||||
std::string name = _imageURL.toString().toStdString();
|
||||
}
|
||||
GLuint texID = _texture->getID();
|
||||
if (texID == 27) {
|
||||
std::string name = _imageURL.toString().toStdString();
|
||||
glBindTexture(GL_TEXTURE_2D, texID);
|
||||
} else
|
||||
glBindTexture(GL_TEXTURE_2D, _texture->getID());
|
||||
glBindTexture(GL_TEXTURE_2D, _texture->getID());
|
||||
}
|
||||
|
||||
const float MAX_COLOR = 255.0f;
|
||||
|
|
Loading…
Reference in a new issue