diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/newview/llwebbrowserctrl.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/linden/indra/newview/llwebbrowserctrl.cpp b/linden/indra/newview/llwebbrowserctrl.cpp index e9a7132..8c56e5c 100644 --- a/linden/indra/newview/llwebbrowserctrl.cpp +++ b/linden/indra/newview/llwebbrowserctrl.cpp | |||
@@ -596,14 +596,14 @@ void LLWebBrowserCtrl::draw() | |||
596 | } | 596 | } |
597 | 597 | ||
598 | // scale texture to fit the space using texture coords | 598 | // scale texture to fit the space using texture coords |
599 | mWebBrowserImage->bindTexture(); | 599 | gGL.getTexUnit(0)->bind(mWebBrowserImage->getTexture()); |
600 | gGL.color4fv( LLColor4::white.mV ); | 600 | gGL.color4fv( LLColor4::white.mV ); |
601 | F32 max_u = ( F32 )mWebBrowserImage->getBrowserWidth() / ( F32 )mWebBrowserImage->getWidth(); | 601 | F32 max_u = ( F32 )mWebBrowserImage->getBrowserWidth() / ( F32 )mWebBrowserImage->getWidth(); |
602 | F32 max_v = ( F32 )mWebBrowserImage->getBrowserHeight() / ( F32 )mWebBrowserImage->getHeight(); | 602 | F32 max_v = ( F32 )mWebBrowserImage->getBrowserHeight() / ( F32 )mWebBrowserImage->getHeight(); |
603 | 603 | ||
604 | // draw the browser | 604 | // draw the browser |
605 | gGL.setSceneBlendType(LLRender::BT_REPLACE); | 605 | gGL.setSceneBlendType(LLRender::BT_REPLACE); |
606 | gGL.begin( LLVertexBuffer::QUADS ); | 606 | gGL.begin( LLRender::QUADS ); |
607 | { | 607 | { |
608 | // render using web browser reported width and height, instead of trying to invert GL scale | 608 | // render using web browser reported width and height, instead of trying to invert GL scale |
609 | gGL.texCoord2f( max_u, max_v ); | 609 | gGL.texCoord2f( max_u, max_v ); |