Commit 7678dd00 authored by Rinnegatamante's avatar Rinnegatamante
Browse files

Enabled MSAA 4x.

parent 075b4f9b
...@@ -79,6 +79,7 @@ of OpenGL ...@@ -79,6 +79,7 @@ of OpenGL
uint16_t* indices; uint16_t* indices;
float *gVertexBuffer; float *gVertexBuffer;
uint8_t *gColorBuffer; uint8_t *gColorBuffer;
uint8_t *gColorBuffer255;
float *gTexCoordBuffer; float *gTexCoordBuffer;
float *gVertexBufferPtr; float *gVertexBufferPtr;
uint8_t *gColorBufferPtr; uint8_t *gColorBufferPtr;
...@@ -117,7 +118,7 @@ void GLimp_Init( qboolean coreContext) ...@@ -117,7 +118,7 @@ void GLimp_Init( qboolean coreContext)
glConfig.isFullscreen = qtrue; glConfig.isFullscreen = qtrue;
if (!inited){ if (!inited){
vglInitExtended(0x100000, glConfig.vidWidth, glConfig.vidHeight, 0x1000000); vglInitExtended(0x100000, glConfig.vidWidth, glConfig.vidHeight, 0x1000000, SCE_GXM_MULTISAMPLE_4X);
vglUseVram(GL_TRUE); vglUseVram(GL_TRUE);
vglMapHeapMem(); vglMapHeapMem();
inited = 1; inited = 1;
...@@ -136,6 +137,8 @@ void GLimp_Init( qboolean coreContext) ...@@ -136,6 +137,8 @@ void GLimp_Init( qboolean coreContext)
gVertexBufferPtr = (float*)malloc(0x400000); gVertexBufferPtr = (float*)malloc(0x400000);
gColorBufferPtr = (uint8_t*)malloc(0x200000); gColorBufferPtr = (uint8_t*)malloc(0x200000);
gTexCoordBufferPtr = (float*)malloc(0x200000); gTexCoordBufferPtr = (float*)malloc(0x200000);
gColorBuffer255 = (uint8_t*)malloc(0x3000);
memset(gColorBuffer255, 0xFF, 0x3000);
gVertexBuffer = gVertexBufferPtr; gVertexBuffer = gVertexBufferPtr;
gColorBuffer = gColorBufferPtr; gColorBuffer = gColorBufferPtr;
gTexCoordBuffer = gTexCoordBufferPtr; gTexCoordBuffer = gTexCoordBufferPtr;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment