projects
/
dosdemo
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added CPUID code from rbench and get_cpl to be used by the
[dosdemo]
/
src
/
glut
/
main.c
diff --git
a/src/glut/main.c
b/src/glut/main.c
index
824837e
..
8d19192
100644
(file)
--- a/
src/glut/main.c
+++ b/
src/glut/main.c
@@
-11,6
+11,7
@@
#include "cfgopt.h"
#include "cgmath/cgmath.h"
#include "util.h"
#include "cfgopt.h"
#include "cgmath/cgmath.h"
#include "util.h"
+#include "cpuid.h"
static void display(void);
static void idle(void);
static void display(void);
static void idle(void);
@@
-101,6
+102,9
@@
int main(int argc, char **argv)
glEnable(GL_TEXTURE_2D);
glEnable(GL_CULL_FACE);
glEnable(GL_TEXTURE_2D);
glEnable(GL_CULL_FACE);
+ if(read_cpuid(&cpuid) == 0) {
+ print_cpuid(&cpuid);
+ }
if(!set_video_mode(match_video_mode(FB_WIDTH, FB_HEIGHT, FB_BPP), 1)) {
return 1;
if(!set_video_mode(match_video_mode(FB_WIDTH, FB_HEIGHT, FB_BPP), 1)) {
return 1;