[Video] Remove grGetProcAddress
This commit is contained in:
parent
27ddac9f89
commit
f6915aa608
|
@ -1316,18 +1316,12 @@ static void DrawWholeFrameBufferToScreen()
|
|||
}
|
||||
|
||||
static void GetGammaTable()
|
||||
{
|
||||
char strGetGammaTableExt[] = "grGetGammaTableExt";
|
||||
void (FX_CALL *grGetGammaTableExt)(FxU32, FxU32*, FxU32*, FxU32*) =
|
||||
(void (FX_CALL *)(FxU32, FxU32*, FxU32*, FxU32*))grGetProcAddress(strGetGammaTableExt);
|
||||
if (grGetGammaTableExt)
|
||||
{
|
||||
voodoo.gamma_table_r = new FxU32[voodoo.gamma_table_size];
|
||||
voodoo.gamma_table_g = new FxU32[voodoo.gamma_table_size];
|
||||
voodoo.gamma_table_b = new FxU32[voodoo.gamma_table_size];
|
||||
grGetGammaTableExt(voodoo.gamma_table_size, voodoo.gamma_table_r, voodoo.gamma_table_g, voodoo.gamma_table_b);
|
||||
}
|
||||
}
|
||||
|
||||
void write_png_file(const char* file_name, int width, int height, uint8_t *buffer)
|
||||
{
|
||||
|
|
|
@ -971,51 +971,6 @@ grTextureAuxBufferExt(GrChipID_t tmu,
|
|||
|
||||
FX_ENTRY void FX_CALL grAuxBufferExt(GrBuffer_t buffer);
|
||||
|
||||
FX_ENTRY GrProc FX_CALL
|
||||
grGetProcAddress(char *procName)
|
||||
{
|
||||
WriteTrace(TraceGlitch, TraceDebug, "procName: %s", procName);
|
||||
if (!strcmp(procName, "grSstWinOpenExt"))
|
||||
return (GrProc)grSstWinOpenExt;
|
||||
if (!strcmp(procName, "grTextureBufferExt"))
|
||||
return (GrProc)grTextureBufferExt;
|
||||
if (!strcmp(procName, "grChromaRangeExt"))
|
||||
return (GrProc)grChromaRangeExt;
|
||||
if (!strcmp(procName, "grChromaRangeModeExt"))
|
||||
return (GrProc)grChromaRangeModeExt;
|
||||
if (!strcmp(procName, "grTexChromaRangeExt"))
|
||||
return (GrProc)grTexChromaRangeExt;
|
||||
if (!strcmp(procName, "grTexChromaModeExt"))
|
||||
return (GrProc)grTexChromaModeExt;
|
||||
// ZIGGY framebuffer copy extension
|
||||
if (!strcmp(procName, "grFramebufferCopyExt"))
|
||||
return (GrProc)grFramebufferCopyExt;
|
||||
if (!strcmp(procName, "grColorCombineExt"))
|
||||
return (GrProc)grColorCombineExt;
|
||||
if (!strcmp(procName, "grAlphaCombineExt"))
|
||||
return (GrProc)grAlphaCombineExt;
|
||||
if (!strcmp(procName, "grTexColorCombineExt"))
|
||||
return (GrProc)grTexColorCombineExt;
|
||||
if (!strcmp(procName, "grTexAlphaCombineExt"))
|
||||
return (GrProc)grTexAlphaCombineExt;
|
||||
if (!strcmp(procName, "grConstantColorValueExt"))
|
||||
return (GrProc)grConstantColorValueExt;
|
||||
if (!strcmp(procName, "grTextureAuxBufferExt"))
|
||||
return (GrProc)grTextureAuxBufferExt;
|
||||
if (!strcmp(procName, "grAuxBufferExt"))
|
||||
return (GrProc)grAuxBufferExt;
|
||||
if (!strcmp(procName, "grConfigWrapperExt"))
|
||||
return (GrProc)grConfigWrapperExt;
|
||||
if (!strcmp(procName, "grKeyPressedExt"))
|
||||
return (GrProc)grKeyPressedExt;
|
||||
if (!strcmp(procName, "grQueryResolutionsExt"))
|
||||
return (GrProc)grQueryResolutionsExt;
|
||||
if (!strcmp(procName, "grGetGammaTableExt"))
|
||||
return (GrProc)grGetGammaTableExt;
|
||||
WriteTrace(TraceGlitch, TraceWarning, "grGetProcAddress : %s", procName);
|
||||
return 0;
|
||||
}
|
||||
|
||||
FX_ENTRY FxU32 FX_CALL
|
||||
grGet(FxU32 pname, FxU32 plength, FxI32 *params)
|
||||
{
|
||||
|
|
|
@ -1244,53 +1244,6 @@ grTextureAuxBufferExt(GrChipID_t tmu,
|
|||
|
||||
FX_ENTRY void FX_CALL grAuxBufferExt(GrBuffer_t buffer);
|
||||
|
||||
FX_ENTRY GrProc FX_CALL
|
||||
grGetProcAddress(char *procName)
|
||||
{
|
||||
WriteTrace(TraceGlitch, TraceDebug, "procName: %s", procName);
|
||||
if (!strcmp(procName, "grSstWinOpenExt"))
|
||||
return (GrProc)grSstWinOpenExt;
|
||||
if (!strcmp(procName, "grTextureBufferExt"))
|
||||
return (GrProc)grTextureBufferExt;
|
||||
if (!strcmp(procName, "grChromaRangeExt"))
|
||||
return (GrProc)grChromaRangeExt;
|
||||
if (!strcmp(procName, "grChromaRangeModeExt"))
|
||||
return (GrProc)grChromaRangeModeExt;
|
||||
if (!strcmp(procName, "grTexChromaRangeExt"))
|
||||
return (GrProc)grTexChromaRangeExt;
|
||||
if (!strcmp(procName, "grTexChromaModeExt"))
|
||||
return (GrProc)grTexChromaModeExt;
|
||||
// ZIGGY framebuffer copy extension
|
||||
if (!strcmp(procName, "grFramebufferCopyExt"))
|
||||
return (GrProc)grFramebufferCopyExt;
|
||||
if (!strcmp(procName, "grColorCombineExt"))
|
||||
return (GrProc)grColorCombineExt;
|
||||
if (!strcmp(procName, "grAlphaCombineExt"))
|
||||
return (GrProc)grAlphaCombineExt;
|
||||
if (!strcmp(procName, "grTexColorCombineExt"))
|
||||
return (GrProc)grTexColorCombineExt;
|
||||
if (!strcmp(procName, "grTexAlphaCombineExt"))
|
||||
return (GrProc)grTexAlphaCombineExt;
|
||||
if (!strcmp(procName, "grConstantColorValueExt"))
|
||||
return (GrProc)grConstantColorValueExt;
|
||||
if (!strcmp(procName, "grTextureAuxBufferExt"))
|
||||
return (GrProc)grTextureAuxBufferExt;
|
||||
if (!strcmp(procName, "grAuxBufferExt"))
|
||||
return (GrProc)grAuxBufferExt;
|
||||
if (!strcmp(procName, "grWrapperFullScreenResolutionExt"))
|
||||
return (GrProc)grWrapperFullScreenResolutionExt;
|
||||
if (!strcmp(procName, "grConfigWrapperExt"))
|
||||
return (GrProc)grConfigWrapperExt;
|
||||
if (!strcmp(procName, "grKeyPressedExt"))
|
||||
return (GrProc)grKeyPressedExt;
|
||||
if (!strcmp(procName, "grQueryResolutionsExt"))
|
||||
return (GrProc)grQueryResolutionsExt;
|
||||
if (!strcmp(procName, "grGetGammaTableExt"))
|
||||
return (GrProc)grGetGammaTableExt;
|
||||
WriteTrace(TraceGlitch, TraceWarning, "grGetProcAddress : %s", procName);
|
||||
return 0;
|
||||
}
|
||||
|
||||
FX_ENTRY FxU32 FX_CALL
|
||||
grGet(FxU32 pname, FxU32 plength, FxI32 *params)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue