diff --git a/src/gx/CGxDevice.cpp b/src/gx/CGxDevice.cpp index 8e07f12..32f888c 100644 --- a/src/gx/CGxDevice.cpp +++ b/src/gx/CGxDevice.cpp @@ -333,7 +333,7 @@ void CGxDevice::ICursorDraw() { // Turn off everything GxRsSet(GxRs_PolygonOffset, 0); GxRsSet(GxRs_NormalizeNormals, 0); - GxRsSet(GxRs_BlendingMode, 1); + GxRsSet(GxRs_BlendingMode, GxBlend_AlphaKey); GxRsSetAlphaRef(); GxRsSet(GxRs_Lighting, 0); GxRsSet(GxRs_Fog, 0); @@ -355,6 +355,9 @@ void CGxDevice::ICursorDraw() { float cursorDepth = 1.0f; C44Matrix projection; + // Workaround for software cursor + // C44Matrix projection(2, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0.002, 0, -1, -1, 0, 1); + // this->XformSetProjection(projection); if (!this->StereoEnabled() || (CGxDevice::s_uiVertexShader == 0 || !s_uiVertexShader->Valid()) || diff --git a/src/gx/glsdl/GLSDLDevice.cpp b/src/gx/glsdl/GLSDLDevice.cpp index 81bfa15..6e67dac 100644 --- a/src/gx/glsdl/GLSDLDevice.cpp +++ b/src/gx/glsdl/GLSDLDevice.cpp @@ -1578,7 +1578,7 @@ GLTexture* GLSDLDevice::CreateTextureCubeMap(uint32_t size, uint32_t numMipMap, } void GLSDLDevice::Draw(GLEnum primitive, uint32_t a3, uint32_t a4) { - // TODO + this->GLSDLDraw(primitive, a3, a3 + a4, 0, 0, 0); } void GLSDLDevice::DrawIndexed(GLEnum primitive, uint32_t a3, uint32_t a4, uint32_t a5, uint32_t a6, uint32_t count) {