mirror of
https://github.com/SpartanJ/eepp.git
synced 2026-06-05 04:56:31 +03:00
Improved GLES2 support.
Fixed VBOs for GLES2. Fixed a bug in texture size calculation.
This commit is contained in:
@@ -1175,18 +1175,20 @@ void cEETest::Screen4() {
|
||||
if ( NULL != mFBO ) {
|
||||
mFBO->Bind();
|
||||
mFBO->Clear();
|
||||
}
|
||||
|
||||
if ( NULL != mVBO ) {
|
||||
mBlindy.Position( 128-16, 128-16 );
|
||||
mBlindy.Draw();
|
||||
|
||||
if ( NULL != mVBO ) {
|
||||
mVBO->Bind();
|
||||
mVBO->Draw();
|
||||
mVBO->Unbind();
|
||||
}
|
||||
mVBO->Bind();
|
||||
mVBO->Draw();
|
||||
mVBO->Unbind();
|
||||
|
||||
mFBOText.Draw( 128.f - (eeFloat)(Int32)( mFBOText.GetTextWidth() * 0.5f ), 25.f - (eeFloat)(Int32)( mFBOText.GetTextHeight() * 0.5f ), FONT_DRAW_CENTER );
|
||||
}
|
||||
|
||||
if ( NULL != mFBO ) {
|
||||
mFBO->Unbind();
|
||||
|
||||
if ( NULL != mFBO->GetTexture() ) {
|
||||
@@ -1393,15 +1395,6 @@ void cEETest::Input() {
|
||||
if ( KM->IsKeyUp(KEY_6) && KM->ControlPressed() )
|
||||
SetScreen( 5 );
|
||||
|
||||
#ifdef EE_PLATFORM_TOUCH
|
||||
std::list<cInputFinger*> Fingers = KM->GetFingersDown();
|
||||
std::list<cInputFinger*> FingersDown = KM->GetFingersWasDown();
|
||||
|
||||
if ( Fingers.size() == 1 && FingersDown.size() == 1 ) {
|
||||
ShowMenu();
|
||||
}
|
||||
#endif
|
||||
|
||||
cJoystick * Joy = JM->GetJoystick(0);
|
||||
|
||||
if ( mJoyEnabled && NULL != Joy ) {
|
||||
|
||||
Reference in New Issue
Block a user