summaryrefslogtreecommitdiff
path: root/plugins/dfOpenGL/gllog.c
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-06-16 07:03:18 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2009-06-16 07:03:18 +0000
commitbdaffda275f3ae92860a7ab0c23ad5574fac665e (patch)
treeaac7824ab4e980ba888c4f38400b40a70bed38a9 /plugins/dfOpenGL/gllog.c
parent447f8fae234c8a99f1cba5cfd20bff2a0df0895b (diff)
downloadpcsxr-bdaffda275f3ae92860a7ab0c23ad5574fac665e.tar.gz
removed dfOpenGL, peopsxgl is now only built with --enable-opengl specified
git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@23712 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins/dfOpenGL/gllog.c')
-rw-r--r--plugins/dfOpenGL/gllog.c43
1 files changed, 0 insertions, 43 deletions
diff --git a/plugins/dfOpenGL/gllog.c b/plugins/dfOpenGL/gllog.c
deleted file mode 100644
index 447b05a5..00000000
--- a/plugins/dfOpenGL/gllog.c
+++ /dev/null
@@ -1,43 +0,0 @@
-// comment next line and all gllog(xx,....) will go to gpulog.txt (enable logging)
-#define _COMMENTLOG
-
-void gllog(int level, char *fmt,...)
-{
-#ifndef _COMMENTLOG
- static FILE *out=NULL;
- static char tmpbuf[200], tmpbufold[200];
-
- static int repeatcount=0;
-
- if(out==NULL)
- {
- // open output file !
- if((out=fopen("gpulog.txt","wb"))==NULL)exit(1);
- }
- // file already opened
-
- va_list marker;
- va_start(marker,fmt);
- vsprintf(tmpbuf, fmt, marker );
- va_end(marker);
-
- // we dont log the same line multiple times
- if(strcmp(tmpbufold,tmpbuf)==0)
- {
- repeatcount++;
- return;
- }
- else
- {
- // copy the new line to the old buffer
- strcpy(tmpbufold,tmpbuf);
- if(repeatcount>0)
- {
- fprintf(out,"Last message repeated %d times\n",repeatcount);
- repeatcount=0;
- }
- fprintf(out,"Level: %d msg: %s\n",level,tmpbuf);
- fflush(out);
- }
-#endif
-}