Fixed OpenGL error 0x0502.

Implemented cellRtc module.

Added module name list in cellSysmodule to aid debugging.
This commit is contained in:
Hykem 2013-11-09 01:27:37 +00:00
parent 60261408c2
commit 3076571b6f
6 changed files with 1533 additions and 1046 deletions

View file

@ -13,6 +13,8 @@
gcmBuffer gcmBuffers[8];
int last_width = 0, last_height = 0, last_depth_format = 0;
void printGlError(GLenum err, const char* situation)
{
if(err != GL_NO_ERROR)
@ -224,6 +226,10 @@ void GLGSRender::Init(const u32 ioAddress, const u32 ioSize, const u32 ctrlAddre
m_width = 720;
m_height = 576;
last_width = 0;
last_height = 0;
last_depth_format = 0;
m_frame->Show();
m_ioAddress = ioAddress;
@ -1981,8 +1987,6 @@ void GLGSRender::ExecCMD()
{
if(LoadProgram())
{
static int last_width = 0, last_height = 0, last_depth_format = 0;
if(m_width != last_width || m_height != last_height || last_depth_format != m_surface_depth_format)
{
ConLog.Warning("New FBO (%dx%d)", m_width, m_height);